Last active
February 12, 2024 12:03
-
-
Save chanshing/90616e8fddad434bc179ccf1aaf67d7b to your computer and use it in GitHub Desktop.
inputrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Use Vi, not Emacs, style editing | |
set editing-mode vi | |
set completion-ignore-case on | |
set completion-map-case on | |
set mark-symlinked-directories on | |
set show-all-if-ambiguous on | |
set match-hidden-files off | |
# Keymaps for when we're in command mode | |
set keymap vi-command | |
# Search through history | |
"\C-n": history-search-forward | |
"\C-p": history-search-backward | |
# TAB to cycle possible completion | |
TAB: menu-complete | |
# Shift-TAB to reverse cycle possible completion | |
"\e[Z": "\e-1\C-i" | |
# Keymaps for when we're in insert mode | |
set keymap vi-insert | |
# Search through history | |
"\C-n": history-search-forward | |
"\C-p": history-search-backward | |
# TAB to cycle possible completion | |
TAB: menu-complete | |
# Shift-TAB to reverse cycle possible completion | |
"\e[Z": "\e-1\C-i" | |
# Cursor shape | |
set show-mode-in-prompt on | |
set vi-cmd-mode-string "\1\e[2 q\2" | |
set vi-ins-mode-string "\1\e[6 q\2" | |
set keyseq-timeout 10 # reduce ESC delay |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment