dotfiles/inputrc

30 lines
978 B
Plaintext
Raw Normal View History

2022-01-05 03:41:41 +00:00
set input-meta on
set output-meta on
set colored-stats on
set completion-ignore-case on
set page-completions on
set show-all-if-ambiguous on
set show-all-if-unmodified on
set visible-stats on
# Be more intelligent when autocompleting by also looking at the text after
# the cursor. For example, when the current line is "cd ~/src/mozil", and
# the cursor is on the "z", pressing Tab will not autocomplete it to "cd
# ~/src/mozillail", but to "cd ~/src/mozilla". (This is supported by the
# Readline used by Bash 4.) [from https://github.com/mathiasbynens/dotfiles]
set skip-completed-text on
"\e[1~": beginning-of-line
"\e[4~": end-of-line
"\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
# Use the text that has already been typed as the prefix for searching through
# commands (i.e. more intelligent Up/Down behavior)
"\e[B": history-search-forward
"\e[A": history-search-backward