Shortcuts to Move Faster in Bash Command Line
teohm.github.com
Shortcuts to Move Faster in Bash Command Line
1–10 of 26 posts
Re: Shortcuts to Move Faster in Bash Command Line
#2http://www.skorks.com/2009/09/bash-shortcuts-for-maximum-pro...
which includes some other nice shortcuts - like ctrl + xx
Re: Shortcuts to Move Faster in Bash Command Line
#3 set -o vi
to ~/.bashrc.Peteris Krumins also has an article on bash command line editing with some extra information on completion:
http://www.catonmat.net/blog/bash-emacs-editing-mode-cheat-s...
Re: Shortcuts to Move Faster in Bash Command Line
#4Re: Shortcuts to Move Faster in Bash Command Line
#5What's wrong with using the arrow keys?
Re: Shortcuts to Move Faster in Bash Command Line
#6Re: Shortcuts to Move Faster in Bash Command Line
#7This is a description of the Emacs bindings, which are the default. Vi bindings are also available and can be enabled by adding set -o vi to ~/.bashrc. Peteris Krumins also has an article on bash command line editing with some extra information on completion: http://www.catonmat.net/blog/bash-emacs-editing-mode-cheat-s...
I haven't actually put the set into my .bashrc yet, I just end up typing it when I realize I'm about to navigate a lot.
Re: Shortcuts to Move Faster in Bash Command Line
#8Re: Shortcuts to Move Faster in Bash Command Line
#9What's wrong with using the arrow keys?
It amounts to significantly less hand and finger movement.
Also, 'Ctrl + p' and 'Ctrl + n' will navigate through your command history. I do love 'Ctrl + r' for searching through it, too.
Re: Shortcuts to Move Faster in Bash Command Line
#10My favorite tip is to stay in emacs mode, but whenever you have something "complicated" to do, use Ctrl-X Ctrl-E : it opens the current line in $EDITOR.