dotfiles/.inputrc

34 lines
973 B
Plaintext
Raw Permalink Normal View History

2022-01-03 05:33:05 -05:00
# none, visible or audible
set bell-style visible
# Ask before displaying >40 items
set completion-query-items 40
set completion-ignore-case on
# disable/enable 8bit input
#set meta-flag on
#set input-meta on
2023-07-31 18:28:38 -04:00
#set convert-meta off
#set output-meta off
2022-01-03 05:33:05 -05:00
2023-07-31 18:28:38 -04:00
"\e[1~": beginning-of-line # Home
"\e[4~": end-of-line # End
"\e[5~": beginning-of-history # PageUp
"\e[6~": end-of-history # PageDown
"\e[2~": overwrite-mode # Insert
"\eOC": forward-word # Ctrl-Right
"\eOD": backward-word # Ctrl-Left
"\e[3;5~": kill-word # Ctrl-Del - delete word to the right
2022-01-03 05:33:05 -05:00
2023-07-31 18:28:38 -04:00
"\e[A": history-search-backward # ArrowUp
"\e[B": history-search-forward # ArrowDown
2022-01-03 05:33:05 -05:00
2023-07-31 18:28:38 -04:00
#"\33\33[A": "cd ..\n" # Alt-UpArrow for 'cd ..'
#"\33\33[B": "cd -\n" # Alt-ArrowDown for previous dir
2022-01-03 05:33:05 -05:00
2023-07-31 18:28:38 -04:00
"\e[1;3A": "cd ..\n" # Alt-UpArrow for 'cd ..'
"\e[1;3B": "cd -\n" # Alt-ArrowDown for previous dir
2022-01-03 05:33:05 -05:00
2023-07-31 18:28:38 -04:00
# Ctrl-K - clears the input line regardless of cursor pos
"\C-k": "\C-e\C-u"