/
inputrc
58 lines (46 loc) · 1.34 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
50
51
52
53
54
55
56
57
58
# inputrc for libreadline
# See readline(3) and `info rluserman' for more information.
# Use "bind -p" to see current bindings.
# Use "C-x C-r" to reread this file.
# Be 8 bit clean.
set input-meta on
set output-meta on
# allow the use of the Home/End keys
"\e[1~": beginning-of-line
"\e[4~": end-of-line
# allow the use of the Delete/Insert keys
"\e[3~": delete-char
"\e[2~": quoted-insert
# Ctrl-left-arrow and Ctrl-right-arrow for word moving
"\e[1;5C": forward-word
"\e[1;5D": backward-word
"\e[5C": forward-word
"\e[5D": backward-word
"\e\e[C": forward-word
"\e\e[D": backward-word
# Emacs-like copy and paste
#Meta-w: copy-region-as-kill # xfce4-terminal may be interfering
# Ctrl-up-arrow and Ctrl-down-arrow to search the history
"\e[1;5A": history-search-backward
"\e[1;5B": history-search-forward
$if term=rxvt
"\e[7~": beginning-of-line
"\e[8~": end-of-line
"\eOc": forward-word
"\eOd": backward-word
$endif
# for non RH/Debian xterm, can't hurt for RH/Debian xterm
# "\eOH": beginning-of-line
# "\eOF": end-of-line
# for FreeBSD console (kvt)
# "\e[H": beginning-of-line
# "\e[F": end-of-line
# Filename completion/expansion
set completion-ignore-case on
set completion-map-case on
set print-completions-horizontally on
# Append "/" to all dirnames
set mark-directories on
set mark-symlinked-directories on
# Match all files
set match-hidden-files on