diff options
author | xyz <gky44px1999@gmail.com> | 2021-05-08 22:48:58 -0700 |
---|---|---|
committer | xyz <gky44px1999@gmail.com> | 2021-05-08 22:48:58 -0700 |
commit | 3e65b985fa60ca0229986994b198acc2ab2cbd2d (patch) | |
tree | 024076bb1c021d0c30597f10094821866fde1992 /.config/readline | |
parent | a35377042162e65f992ac0be9afb03697c3c25c9 (diff) |
add readline config file
Diffstat (limited to '.config/readline')
-rw-r--r-- | .config/readline/inputrc | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/.config/readline/inputrc b/.config/readline/inputrc new file mode 100644 index 00000000..e67d5750 --- /dev/null +++ b/.config/readline/inputrc @@ -0,0 +1,20 @@ +# https://github.com/LukeSmithxyz/voidrice/blob/2440ad83e9e9cf2f927efbaef618513e0df3cbda/.config/shell/inputrc +$include /etc/inputrc +set editing-mode vi +$if mode=vi + + set show-mode-in-prompt 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 for vi-insert mode + Control-l: clear-screen + #Control-a: beginning-of-line + +$endif |