Skip to content

Instantly share code, notes, and snippets.

@jaketripp
Created July 2, 2019 03:04
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 jaketripp/f43309e5e9c9da0ad6cc7cd4483ba33e to your computer and use it in GitHub Desktop.
Save jaketripp/f43309e5e9c9da0ad6cc7cd4483ba33e to your computer and use it in GitHub Desktop.
# https://www.topbug.net/blog/2017/07/31/inputrc-for-humans/
# Use Unicode & do NOT use the "8bit hack" to input/output non-ASCII characters
# See http://code.google.com/p/iterm2/wiki/Keybindings
set input-meta on
set output-meta on
set convert-meta off
# When pressing up or down arrows,
# show only history entries that match what was already typed
"\e[A":history-search-backward
"\e[B":history-search-forward
# Turn on case insensitivity for tab-completion
# Ex.: type "doc<tab>" to search for "Documents"
set completion-ignore-case On
# This line sets readline to display possible completions using different colors
# to indicate their file types. The colors are determined by the environmental
# variable LS_COLORS, which can be nicely configured.
set colored-stats On
# This lines sets completions to be appended by
# characters that indicate their file types reported
# by the stat system call.
set visible-stats On
# Show at least 3 characters, but otherwise show the different endings
# if files named the same
# Screenshot_20170730.png Screenshot_20170731.png -> ...0.png ...1.png
set completion-prefix-display-length 3
# This line sets every completion which is a symbolic
# link to a directory to have a slash appended.
set mark-symlinked-directories On
# show possibilities immediately if more than one possible result when tabbing
set show-all-if-ambiguous On
# This line sets the completions to be listed immediately
# instead of ringing the bell, when the completing word
# has more than one possible completion but no partial completion can be made.
set show-all-if-unmodified On
# bind -f ~/.inputrc to set it
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment