dotfiles/inputrc

49 lines
1.3 KiB
Plaintext
Raw Normal View History

2016-05-01 15:02:53 +02:00
$include /etc/inputrc
2017-06-27 08:14:12 +02:00
set bell-style none
2019-04-14 19:41:33 +02:00
set colored-completion-prefix on
set colored-stats on
2017-06-27 08:14:12 +02:00
set completion-ignore-case on
set completion-query-items 200
2016-05-01 15:02:53 +02:00
set editing-mode vi
2017-06-27 08:14:12 +02:00
set history-preserve-point on
set history-size 10000
2017-09-01 18:39:06 +02:00
set horizontal-scroll-mode off
2017-06-27 08:14:12 +02:00
set mark-directories on
set mark-modified-lines off
set mark-symlinked-directories on
set match-hidden-files on
2019-04-14 19:41:33 +02:00
set menu-complete-display-prefix on
2017-06-27 08:14:12 +02:00
set page-completions on
2019-04-14 19:41:33 +02:00
set print-completions-horizontally off
2017-06-27 08:14:12 +02:00
set revert-all-at-newline off
2016-12-19 10:11:19 +01:00
set show-all-if-ambiguous on
2017-06-27 08:14:12 +02:00
set show-all-if-unmodified on
2019-04-14 19:41:33 +02:00
set show-mode-in-prompt on
2017-06-27 08:14:12 +02:00
set skip-completed-text on
2019-04-14 19:41:33 +02:00
set visible-stats off
2017-06-27 08:14:12 +02:00
2016-05-01 15:02:53 +02:00
$if mode=vi
2019-04-14 19:41:33 +02:00
# these are for vi-command mode
2017-06-27 08:14:12 +02:00
set keymap vi-command
2019-04-14 19:41:33 +02:00
"\e[A": history-search-backward
"\e[B": history-search-forward
Control-l: clear-screen
# these are for vi-insert mode
2017-06-27 08:14:12 +02:00
set keymap vi-insert
2019-04-14 19:41:33 +02:00
"jk": vi-movement-mode
"\e[A": history-search-backward
"\e[B": history-search-forward
Control-l: clear-screen
# Switch between thin cursor and thicc block depending on vi mode
$if term=linux
set vi-ins-mode-string \1\e[?0c\2
set vi-cmd-mode-string \1\e[?8c\2
$else
set vi-ins-mode-string \1\e[6 q\2
set vi-cmd-mode-string \1\e[2 q\2
$endif
2016-05-01 15:02:53 +02:00
$endif