diff options
author | Luca Matei Pintilie <lucafulger@gmail.com> | 2022-10-24 18:21:02 +0000 |
---|---|---|
committer | Luca Matei Pintilie <lucafulger@gmail.com> | 2022-10-24 18:21:02 +0000 |
commit | 38863c6118c64d727e44cfb3b23f2d91a8220b65 (patch) | |
tree | 92aba0ad49503c484009fb5fc02a63081a50a5dc | |
parent | fc0c40fdf7b93940b12d9d6087cde57d9d15cd84 (diff) | |
download | dotfiles-38863c6118c64d727e44cfb3b23f2d91a8220b65.tar dotfiles-38863c6118c64d727e44cfb3b23f2d91a8220b65.tar.gz dotfiles-38863c6118c64d727e44cfb3b23f2d91a8220b65.tar.bz2 dotfiles-38863c6118c64d727e44cfb3b23f2d91a8220b65.tar.lz dotfiles-38863c6118c64d727e44cfb3b23f2d91a8220b65.tar.xz dotfiles-38863c6118c64d727e44cfb3b23f2d91a8220b65.tar.zst dotfiles-38863c6118c64d727e44cfb3b23f2d91a8220b65.zip |
Add inputrc file with vi bindings
-rw-r--r-- | .inputrc | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/.inputrc b/.inputrc new file mode 100644 index 0000000..49e7407 --- /dev/null +++ b/.inputrc @@ -0,0 +1,32 @@ +set editing-mode vi + +set show-mode-in-prompt on + +#$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 + +"\e[1;5D": backward-word +"\e[1;5C": forward-word + +set show-all-if-unmodified on +set show-all-if-ambiguous on + +# Color files by types +# Note that this may cause completion text blink in some terminals (e.g. xterm). +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 + +set echo-control-characters off + |