forked from tzarskyz/dotfiles-1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinputrc
38 lines (35 loc) · 994 Bytes
/
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
# not relevant on osx
#$include /etc/inputrc
"\e[B": history-search-forward
"\e[A": history-search-backward
$if Bash
# append a '/' to show a dir is a dir
set mark-directories on
set mark-symlinked-directories on
# no audible or visual bell
set bell-style none
# use ls -F style highlights for completion
set visible-stats on
# go right to showing multiple options
set show-all-if-ambiguous on
# truncate long matching names
set completion-prefix-display-length 2
# ctrl-p cycles through options
"\C-p": menu-complete
"\C-x\C-x": exchange-point-and-mark
"\ew": copy-region-as-kill
# easier back and forth by word
"\C-b": backward-word
"\eb": backward-char
"\C-f": forward-word
"\ef": forward-char
# Kill whole line
"\C-d" kill-whole-line
$endif
# Two silly macros
#
# Insert double quotes & set cursor between them
"\C-x\"": "\"\"\eb"
#
# Insert single quotes & set cursor between them
"\C-x'": "''\eb"