diff --git a/inputrc/inputrc b/inputrc/inputrc new file mode 100644 index 0000000..df5bf8f --- /dev/null +++ b/inputrc/inputrc @@ -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 diff --git a/inputrc/install.sh b/inputrc/install.sh new file mode 100755 index 0000000..47dfe49 --- /dev/null +++ b/inputrc/install.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env sh + +ln -svrf inputrc ~/.inputrc +