-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdot_inputrc
66 lines (56 loc) · 1.79 KB
/
dot_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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
$include /etc/inputrc
# \C-hjkl commented since I want to try out vim-tmux-navigator with defaults.
# Ctrl arrows left/right to move between "words"
# (default)
# Shift arrows left/right to move between "WORDS"
"\e[1;2C": shell-forward-word
"\e[1;2D": shell-backward-word
"\eh": backward-char
"\el": forward-char
"\C-f": clear-screen
"\ea": kill-region
# mark, go to end, space, exchange-point-and-mark,
# mark, go to space, kill-region
"\ew": '\e \C-e \C-x\C-x\e \C-] \ea'
"\C-d": backward-kill-word
# make C-p and C-n behave like up/down arrows
"\C-p": history-search-backward
"\C-n": history-search-forward
"\C-o": menu-complete
# shift-tab
"\e[Z": menu-complete-backward
# add parameters to the last command: (previous-history, beginning-of-line, forward-word)
"\C-x\C-s": "\C-p\C-a\e[1;5C "
# quote args: (beginning-of-line, move to first space, forward-char, ', eol, ')
"\C-xq": "\C-a\C-] \el'\C-e'"
# Defaults {{{
# M-t, C-t transpose words/chars
# C-r, C-s reverse/forward search history
# C-g abort searches
# M-# comment line
# C-u kill backwards
# C-k kill-line
# M-d kill-word
# C-](char) character-search (char)
# M-C-](char) character-search-backward (char)
# defaults overridden
# C-f move by one char at a time
"\e[A": history-search-backward
"\e[B": history-search-forward
# }}}
set mark-symlinked-directories on
set match-hidden-files on
set show-all-if-ambiguous on
set show-all-if-unmodified on
set visible-stats on
set skip-completed-text on
set completion-ignore-case on
set completion-map-case on
set completion-prefix-display-length 2
$if Bash
# performs bash's HISTORY EXPANSION.
# Use it on the cli in after !^ !$ !* !:1 !:2 !:3 !:0
# Can also use !-2 to retrieve the next-to-last line in full.
# And pick its pieces with !-2:0 (0 means first token)
\C-Space: magic-space
$endif