Nice post.
My workflow is similar.
Alt+Left and Alt+Right let you do word jumps
Alt-b and Alt-f achieve the same (move cursor back or forward one word at a time)
Bonus: Ctrl-a (move cursor to beginning of prompt) and Ctrl-e (move cursor to end of prompt)
Alt+Backspace erases one word at a time.
Also, Ctrl-w
Bonus: Ctrl-k (delete everything from cursor to beginning) and Ctrl-u (delete everything from cursor to end)
Lastly, I don't know about zsh, but in bash, if you press Ctrl-x + Ctrl-e, you can edit bash commands in $EDITOR before running/executing the command
Always good to have more options! I suppose that keystrokes with letters are easier to reach for most people.
Also, I'm happy to confirm that your Ctrl+X -> Ctrl+E tip also works in Zsh here. Thanks Peter!
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Nice post.
My workflow is similar.
Alt-b and Alt-f achieve the same (move cursor back or forward one word at a time)
Bonus: Ctrl-a (move cursor to beginning of prompt) and Ctrl-e (move cursor to end of prompt)
Also, Ctrl-w
Bonus: Ctrl-k (delete everything from cursor to beginning) and Ctrl-u (delete everything from cursor to end)
Lastly, I don't know about zsh, but in bash, if you press Ctrl-x + Ctrl-e, you can edit bash commands in $EDITOR before running/executing the command
Always good to have more options! I suppose that keystrokes with letters are easier to reach for most people.
Also, I'm happy to confirm that your Ctrl+X -> Ctrl+E tip also works in Zsh here. Thanks Peter!