Created
January 22, 2015 21:16
-
-
Save zdennis/0d829b83ad432cd54e88 to your computer and use it in GitHub Desktop.
inputrc
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
# simple character binding | |
#"z":"echo hello world" | |
# controler character binding | |
#"\C-g":"echo goodbye world" | |
# function key binding | |
# "\033OP":"echo f1" | |
# "\eOQ":"echo f2" | |
# these allow you to start typing a command and | |
# use the up/down arrow to auto complete from | |
# commands in your history | |
"\e[B": history-search-forward | |
"\e[A": history-search-backward | |
# macros | |
# "\C-x\C-t":"ftree\n" | |
"\C-gl":"git log\n" | |
"\C-glp":"git log -p\n" | |
"\C-gl1":"git log -n1\n" | |
"\C-gl2":"git log -n2\n" | |
"\C-gl3":"git log -n3\n" | |
"\C-gl4":"git log -n4\n" | |
"\C-gl5":"git log -n5\n" | |
"\C-gl6":"git log -n6\n" | |
"\C-gl7":"git log -n7\n" | |
"\C-gl8":"git log -n8\n" | |
"\C-gl9":"git log -n9\n" | |
"\C-ga":"git amend -a" | |
"\C-gf":"git fetch\n" | |
"\C-gg":"git grep " | |
"\C-gco":"git checkout `pbpaste`\n" | |
"\C-gm":"git checkout master\n" | |
"\C-go":"git open-url\n" | |
"\C-gpl":"git pull\n" | |
"\C-grb":"git rebase -i HEAD~" | |
"\C-gr":"git review" | |
"\C-grr":"git rreview\n" | |
"\C-gs":"git status\n" | |
"\C-gu":"git unmerged" | |
"\C-gur":"git unmerged --remote" | |
"\C-gx":"gitx\n" | |
# Switch to previous branch | |
"\C-gp":"git checkout `git pbranch`\n" | |
# Open pull request | |
"\C-gz":"git open-pull\n" | |
set completion-ignore-case on | |
set visible-stats On | |
set colored-stats On | |
#set convert-meta On | |
set history-size 10000 | |
set mark-symlinked-directories On | |
set print-completions-horizontally On | |
$if Bash | |
# Quote the current or previous word | |
"\C-xq": "\eb\"\ef\"" | |
$endif | |
# $if Ruby | |
# "z":"echo irb!" | |
# $else | |
# "z":"echo not irb!" | |
# $endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment