summaryrefslogtreecommitdiff
path: root/.config/shell/inputrc
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2021-05-23 20:51:42 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2021-05-23 20:51:42 +0200
commit38c1296c06fa2c9948c2de1c3b5581d9b5e96105 (patch)
tree5ec54e47b6cd7634d7477db1d89bfe3b4a45ec53 /.config/shell/inputrc
parentfa06e9e7f3fb49484ea1fa8f564816b548222e39 (diff)
Copying Luke Smith's config a lot
Diffstat (limited to '.config/shell/inputrc')
-rwxr-xr-x.config/shell/inputrc19
1 files changed, 19 insertions, 0 deletions
diff --git a/.config/shell/inputrc b/.config/shell/inputrc
new file mode 100755
index 0000000..cbe8e5e
--- /dev/null
+++ b/.config/shell/inputrc
@@ -0,0 +1,19 @@
+#include /etc/inputrc
+set editing-mode vi
+$if mode=vi
+
+set show-mode-in-promt on
+set vi-ins-mode-string \1\e[6 q\2
+set vi-cmd-mode-string \1\e[2 q\2
+
+set keymap vi-command
+# These are for vi-command mode
+Control-l: clear-screen
+Control-a: beginning-of-line
+
+set keymap vi-insert
+# These are vi-insert mode
+Control-i: clear-screen
+Control-a: beginning-of-line
+
+$endif