-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.inputrc
48 lines (36 loc) · 1.43 KB
/
.inputrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#"\e[5~": history-search-backward
#"\e[6~": history-search-forward
# Use Vi, not Emacs, style editing
set editing-mode vi
# Ignore case
set completion-ignore-case on
# List all matches in case multiple possible completions are possible
#set show-all-if-ambiguous on
# on menu-complete, first display the common prefix, then cycle through the
# options when hitting TAB
set menu-complete-display-prefix on
# Show extra file information when completing, like `ls -F` does
set visible-stats on
# Be more intelligent when autocompleting by also looking at the text after
# the cursor. For example, when the current line is "cd ~/src/mozil", and
# the cursor is on the "z", pressing Tab will not autocomplete it to "cd
# ~/src/mozillail", but to "cd ~/src/mozilla". (This is supported by the
# Readline used by Bash 4.)
set skip-completed-text on
#################################################################
# Keymaps for when we're in command mode (e.g., after hitting ESC)
set keymap vi-command
"\e[A": history-search-backward
"\e[B": history-search-forward
"k": history-search-backward
"j": history-search-forward
###############################################################
# Keymaps for when we're in insert (i.e., typing stuff in) mode
set keymap vi-insert
set bind-tty-special-chars off
# Vim style history search
"\e[A": history-search-backward
"\e[B": history-search-forward
"\e[C": forward-char
"\e[D": backward-char
"\C-w": unix-word-rubout