Created
October 16, 2011 08:53
-
-
Save felixhummel/1290678 to your computer and use it in GitHub Desktop.
$HOME/.bash/bindings.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# how to create new shortcuts: | |
# run ``cat > /tmp/x`` | |
# type your shortcut | |
# press enter (creates new line still in cat) | |
# press C-d to send EOF to cat | |
# run ``cat -v /tmp/x | sed 's;\^\[;\\e;'`` | |
# paste output here | |
# ipython style history | |
bind '"\e[A":history-search-backward' | |
bind '"\e[B":history-search-forward' | |
# fast cd .. :) | |
bind '"\e[1;5A": "pushd .. &> /dev/null\n"' | |
bind '"\e[1;5B": "popd &> /dev/null\n"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment