3 ms·
The #1 thing that'll improve most people's workflow is learning how to use readline effectively. I'm continually amazed by how many people who use shells daily
by avar 15y ago
The #1 thing that'll improve most people's workflow is learning how to use readline effectively. I'm continually amazed by how many people who use shells daily use the arrow keys to navigate around, don't know about common things like C-r to reverse-search through history and other commands that make editing on the command-line a breeze.
- thirdhaf 15y agoIn aid of helping others along this path, here's a crib sheet I've found for readline shortcuts. I've been meaning to become more efficient in using bash and this might just be the push I need. http://www.bigsmoke.us/readline/shortcuts http://www.bigsmoke.us/readline/shortcuts
- avar 15y agoThanks. That's an excellent reference. I've been pointing people towards the relevant section in the readline or bash manuals, but this is much better.
- thirdhaf 15y agoI've honestly tried to use the man pages for bash before, they are unarguably complete but unfortunately difficult to get started with. The chances of me knowing ahead of time to either search first for "readline" followed "Commands for Moving" or read the full man page until I get to line 2957 is slim.
- oinksoft 15y agoI have one cheat sheet at my desk, and it is this one.
- dionidium 15y agoset -o vi
- gaving 15y agoI love my vim, but yuck on the shell.
- sciurus 15y agoAgreed. It's almost always worth investing time in learning your tools, and if you're like me the bash shell is your fundamental, most used tool. I have to give Peteris Krumins credit for creating some great references like http://www.catonmat.net/blog/the-definitive-guide-to-bash-command-line-history/ http://www.catonmat.net/blog/the-definitive-guide-to-bash-co... and http://www.catonmat.net/blog/bash-vi-editing-mode-cheat-sheet/ http://www.catonmat.net/blog/bash-vi-editing-mode-cheat-shee... (or for the depraved, http://www.catonmat.net/blog/bash-emacs-editing-mode-cheat-sheet/ http://www.catonmat.net/blog/bash-emacs-editing-mode-cheat-s...)