-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.inputrc
49 lines (41 loc) · 1.18 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
49
# COMPLETION IMPROVEMENT
set skip-completed-text on
set show-all-if-ambiguous on
set show-all-if-unmodified on
TAB: menu-complete
#set editing-mode vi
#set show-mode-in-prompt on
# COLORS, COLORS EVERYWHERE!
# Color files by types
set colored-stats On
# Append char to indicate type
set visible-stats On
# Mark symlinked directories
set mark-symlinked-directories On
# Color the common prefix
set colored-completion-prefix On
# Color the common prefix in menu-complete
set menu-complete-display-prefix On
set completion-prefix-display-length 2
# NOTE TO OVERRIDE Control-W
set bind-tty-special-chars Off
# MAPPINGS REFINEMENT
# Re-execute the last run command
"\e\C-M": "\C-P\n"
# Delete words back and forth
"\ew": unix-word-rubout
"\C-W": backward-kill-word
"\eg": "$(__git_branch)"
# filter history on typed command
# e.g. typing "cd " and using up arrow goes through the "cd " commands in
# history, instead of going through everything.
"\C-P": history-search-backward
"\C-N": history-search-forward
"\e[A": history-search-backward
"\e[B": history-search-forward
"\eb": backward-char
"\ef": forward-char
"\eh": vi-backward-bigword
"\el": vi-forward-bigword
"\C-h": backward-word
"\C-l": forward-word