Show HN: Isuckatbash – convert plain wording to zsh commands inline

https://gist.github.com/bendytree/ca27db29e8ccd5560533928cb018caa8
by flippy_flops • 9 months ago
2 0 9 months ago

(see demo at bottom of gist)

Type your goal then press [ESC]+[;]

ChatGPT explains the command, options, and places the command on your prompt, ready to edit or run.

$ list images thinking... List all JPEG files (case-insensitive) recursively. $ find . -type f -iname '.jpg' <-- cursor ends here

$ omg delete the leftover git merge files thinking... Find and delete leftover Git merge files (typically named '.orig'). • find . -type f -name '.orig' # preview This will permanently delete all '.orig' files. Run without '-delete' to preview files. $ find . -type f -name '.orig' -delete <-- cursor

$ ps | grep node thinking... Close... 'ps | grep node' works, but often shows less info and may miss some processes depending on your shell/OS. 'ps aux' lists all processes, including the full command line. $ ps aux | grep node <-- cursor

If there's a tool that does this, I'd love to know because I wrote this one and i suck at bash.

Related Stories

Loading related stories...

Source preview

gist.github.com