Created
January 21, 2021 12:52
-
-
Save danmou/75cfdc283ed2a8b276ed9db6ec4f0353 to your computer and use it in GitHub Desktop.
~/.inputrc
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
$include /etc/inputrc | |
# mappings for "page up" and "page down" to search the history | |
"\e[5~": history-search-backward | |
"\e[6~": history-search-forward | |
# mappings for Ctrl-left-arrow and Ctrl-right-arrow (big skip) | |
"\e[1;3C": shell-forward-word | |
"\e[1;5C": shell-forward-word | |
"\e[1;3D": shell-backward-word | |
"\e[1;5D": shell-backward-word | |
# mappings for Shift-left-arrow and Shift-right-arrow (small skip) | |
"\e[1;2C": forward-word | |
"\e[1;2D": backward-word | |
# Ctrl-backspace | |
"\C-h": shell-backward-kill-word | |
# Ctrl-delete | |
"\e[3;5~": shell-kill-word | |
# Alternate mappings for mac | |
# "\e[A": history-search-backward | |
# "\e[B": history-search-forward | |
# "\e[1;5C": shell-forward-word | |
# "\e[1;9C": shell-forward-word | |
# "\e[1;5D": shell-backward-word | |
# "\e[1;9D": shell-backward-word | |
# "\e[1;10C": end-of-line | |
# "\e[1;10D": beginning-of-line | |
# Tabcompletion settings | |
set colored-stats on | |
set completion-ignore-case on | |
set completion-prefix-display-length 3 | |
set mark-symlinked-directories on | |
set show-all-if-ambiguous on | |
set show-all-if-unmodified on | |
set visible-stats on | |
set skip-completed-text on | |
set bell-style none | |
# UTF-8 stuff | |
set input-meta on | |
set output-meta on | |
set convert-meta off |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment