1
0
Files
dotfiles/.inputrc
2026-01-16 11:10:01 +01:00

37 lines
1.1 KiB
Plaintext
Executable File

# .inputrc
# https://linux.die.net/man/3/readline
# enable/disable 8bit input
#set input-meta off
#set convert-meta on
#set output-meta off
# none, visible or audible
set bell-style visible
# Readline config settings
set completion-query-items 40 # Ask before displaying >40 items
set completion-ignore-case on
set colored-stats on # Turn on completion colors.
set colored-completion-prefix on # Color the typed completion prefix.
# Keybinds
"\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
"\e[3;6~": kill-line # Ctrl-Shift-Del - delete to end of the line
"\e[A": history-search-backward # ArrowUp
"\e[B": history-search-forward # ArrowDown
"\e[1;3A": "cd ..\n" # Alt-UpArrow for 'cd ..'
"\e[1;3B": "cd -\n" # Alt-ArrowDown for previous dir
# Ctrl-K - clears the input line regardless of cursor pos
C-k: "\C-e\C-u"