aboutsummaryrefslogblamecommitdiff
path: root/.inputrc
blob: afb20bf8a017fbb493fcc5c74d60c24a1bd52f09 (plain) (tree)
















































                                           
$include /etc/inputrc
set editing-mode vi
set bell-style none

# tab complete quick
set show-all-if-ambiguous on
set show-all-if-unmodified on
TAB: menu-complete
"\e[Z": menu-complete-backward
set menu-complete-display-prefix on

# all the colours
# Color files by types
set colored-stats On
# Append char to indicate type
set visible-stats On
# Mark symlinked directories
set mark-symlinked-directories On
# Color the common prefix
set colored-completion-prefix On
# Color the common prefix in menu-complete
set menu-complete-display-prefix On

# Clear screen
Control-l: clear-screen

$if mode=vi
# different cursors for vi modes (archwiki)
set show-mode-in-prompt on
set vi-ins-mode-string \1\e[6 q\2
set vi-cmd-mode-string \1\e[2 q\2

# (wiki: history substring search stuff)
set keymap vi-command
# these are for vi-command mode
"\e[A": history-search-backward
"\e[B": history-search-forward
j: history-search-forward
k: history-search-backward
Control-l: clear-screen
set keymap vi-insert
# these are for vi-insert mode
"\e[A": history-search-backward
"\e[B": history-search-forward
Control-l: clear-screen
$endif

# no beep
set bell-style none