Last active
December 18, 2015 20:59
-
-
Save macmladen/5844410 to your computer and use it in GitHub Desktop.
InputRC for searching the shell history with up-arrow
This file contains hidden or 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
# Use CTRL-R to get history | |
# Use ! to search and execute !ta -> tail error_log | |
# use !-4 for previous fourth command | |
# clean history: history -c | |
# export HISTCONTROL=erasedups | |
# export HISTCONTROL=ignoredups | |
# http://www.twam.info/software/tune-terminal-in-os-x-lion | |
"\e[B": history-search-forward | |
"\e[A": history-search-backward | |
# do not bell on tab-completion | |
set bell-style none | |
# enable 8bit input | |
set input-meta on | |
# disable stripping of 8bit characters | |
set convert-meta off | |
# enable 8bit output | |
set output-meta on | |
# show multiple possibilities on tab completion | |
set show-all-if-ambiguous on | |
# set file completion case-insensitive | |
set completion-ignore-case on | |
# completes names which are symbolic links to directories with slash appended | |
set mark-symlinked-directories on | |
"\e[1~": beginning-of-line | |
"\e[4~": end-of-line | |
"\e[5~": history-search-backward | |
"\e[6~": history-search-forward | |
"\e[3~": delete-char | |
"\e[5C": forward-word | |
"\e[5D": backward-word |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment