From 9d90e7a999b4da8fe42c0bfaa94a442616ae3a81 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Tue, 12 Feb 2019 08:13:00 +0100 Subject: [PATCH] Added inputrc with vi mode --- inputrc/inputrc | 9 +++++++++ inputrc/install.sh | 4 ++++ 2 files changed, 13 insertions(+) create mode 100644 inputrc/inputrc create mode 100755 inputrc/install.sh 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 +