Added inputrc with vi mode

main
Michael Mandl 2019-02-12 08:13:00 +01:00
parent 2c525aeaf7
commit 9d90e7a999
2 changed files with 13 additions and 0 deletions

9
inputrc/inputrc Normal file
View File

@ -0,0 +1,9 @@
set bell-style visible
set editing-mode vi
$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

4
inputrc/install.sh Executable file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env sh
ln -svrf inputrc ~/.inputrc