-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinputrc
More file actions
43 lines (37 loc) · 1.11 KB
/
Copy pathinputrc
File metadata and controls
43 lines (37 loc) · 1.11 KB
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
set bell-style none
set meta-flag on
set convert-meta off
set output-meta on
set show-all-if-ambiguous on
set visible-stats on
set page-completions off
# 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
# directional keys == reverse-search
"\e[A":history-search-backward
"\e[B":history-search-forward
#"\e[A":history-substring-search-backward
#"\e[B":history-substring-search-forward
# ctrl-left/right nav through words
"\e[1;5C": forward-word
"\e[1;5D": backward-word
# alt-left/right nav through words
# \e[1;3x = standard Alt modifier (Linux terminals)
# \e[1;9x = Meta modifier used by iTerm2 "Option sends Esc+" for arrow keys
"\e[1;3C": forward-word
"\e[1;3D": backward-word
"\e[1;9C": forward-word
"\e[1;9D": backward-word
# Useful keybindings
# Alt-Enter = prepend 'sudo' in the current cmdline
"\e\C-m": "\C-asudo \C-e"
"\e-p": "\C-upacman "
"\e\C-u": "sudo pacman -Syu"