Time Saving Bash Tricks
This is a followup from the lightning talk '5 Time Saving Bash Tricks' at DevOpsDays, Bangalore 2011.
These work with the emacs-readline, which is the default configuration in most ditributions (including OS X).
- C means Control
- M means Meta (usually mapped to Alt/Option or Escape on QWERTY keyboards.)
5 Time Saving Bash Tricks
View more presentations from hyfather
SSH multiplexing
~/.ssh/config
Host *
ControlMaster auto
ControlPath /tmp/%r0%h:%p
Ensuring Bash Hisory across multiple sessions
~/.bashrc
shopt -s histappend
Remember to use pushd and popd when in deeply nested directories.
Background tail processes to share STDOUT and STDERR with any REPL (including the shell itself.)
tail -f httpd.log &
Then start the REPL, or continue working on the shell.