Settings

Theme

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

gist.github.com

2 points by flippy_flops 2 months ago · 0 comments · 1 min read

Reader

(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.

No comments yet.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection