Created
January 15, 2017 01:58
-
-
Save kottenator/e36e83820c49bdc5e183fff88e3f0693 to your computer and use it in GitHub Desktop.
Bash completion and navigation
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
set completion-ignore-case on | |
set show-all-if-ambiguous on | |
set show-all-if-unmodified on | |
# Tab completion | |
TAB: menu-complete | |
# Shift + Tab - backward completion | |
"\e[Z": "\e-1\C-i" | |
# Ctrl + left/right arrows - navigation | |
"\e[1;5C": forward-word | |
"\e[1;5D": backward-word | |
"\e[5C": forward-word | |
"\e[5D": backward-word | |
"\e\e[C": forward-word | |
"\e\e[D": backward-word | |
# Ctrl + Backspace - delete a word (like Alt + Backspace or Ctrl + W) | |
"\C-H": backward-kill-word |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment