Navigate the zsh command line using vim key bindings
If you use zsh, you can easily edit the command line using vim key bindings.
Just add this to your ~/.zshrc
, like so:
bindkey -v
Be sure to "source" the shell initialization afterwards with:
source ~/.zshrc
Here's another shortcut for accomplishing the same sourcing:
. ~/.zshrc
Now you can navigate the command line using vim key bindings. This has been a huge time-saver for me, so give it a try.
For more UNIX tips, please check out
Learning the UNIX Command Line.
Enjoy,
Chip
Written by Chip Castle
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Zsh
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#