summaryrefslogtreecommitdiff
path: root/linux/.inputrc
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2026-05-19 11:15:10 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2026-05-19 11:15:10 +0900
commitb4b9266564d91a6d5b8bcbda0e3e3df5e60c108c (patch)
tree345803f1853865049246bf59ac790c64d5269055 /linux/.inputrc
parent043a5608aa442206b939cd5d4feff6454e431781 (diff)
updates
Diffstat (limited to 'linux/.inputrc')
-rw-r--r--linux/.inputrc31
1 files changed, 31 insertions, 0 deletions
diff --git a/linux/.inputrc b/linux/.inputrc
new file mode 100644
index 0000000..81cdf85
--- /dev/null
+++ b/linux/.inputrc
@@ -0,0 +1,31 @@
+$include /etc/inputrc
+
+set completion-display-width 0
+set completion-query-items 1000
+
+# Prettyfi
+set colored-stats on
+set colored-completion-prefix on
+
+# ^C no longer shows on C-c keypress
+set echo-control-characters off
+
+# Map tab to cycle through all the possible completions.
+TAB: menu-complete
+
+# vi mode
+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
+
+set keymap vi-insert
+# these are for vi-insert mode
+Control-l: clear-screen
+$endif