summaryrefslogtreecommitdiff
path: root/.config/readline/inputrc
diff options
context:
space:
mode:
Diffstat (limited to '.config/readline/inputrc')
-rw-r--r--.config/readline/inputrc11
1 files changed, 9 insertions, 2 deletions
diff --git a/.config/readline/inputrc b/.config/readline/inputrc
index 8c5cb4d..a5d3244 100644
--- a/.config/readline/inputrc
+++ b/.config/readline/inputrc
@@ -15,8 +15,15 @@ set show-all-if-ambiguous on
$if editing-mode == vi
# Change cursor to a bar when in insert mode
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"
+
+ # Taken straight from the Arch Wiki
+ $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
$endif
$if Bash