Skip to content

Instantly share code, notes, and snippets.

@kottenator
Created January 15, 2017 01:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kottenator/e36e83820c49bdc5e183fff88e3f0693 to your computer and use it in GitHub Desktop.
Save kottenator/e36e83820c49bdc5e183fff88e3f0693 to your computer and use it in GitHub Desktop.
Bash completion and navigation
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