-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinputrc
59 lines (47 loc) · 1.61 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
59
# ~/.inputrc
# vim:fdm=marker
# A lot of inspiration comes from https://bluz71.github.io/2018/03/15/bash-shell-tweaks-tips.html
# Default mappings from cygwin see if it's necessary and if it doesn't create a problem {{{
# the following line is actually equivalent to "\C-?": delete-char
"\e[3~": delete-char
# VT
"\e[1~": beginning-of-line
"\e[4~": end-of-line
# kvt
"\e[H": beginning-of-line
"\e[F": end-of-line
# rxvt and konsole (i.e. the KDE-app...)
"\e[7~": beginning-of-line
"\e[8~": end-of-line
# VT220
"\eOH": beginning-of-line
"\eOF": end-of-line
#}}}
# Mappings {{{
# Tab and Shift-Tab cycles trough completion choices
TAB: menu-complete
"\e[Z": menu-complete-backward
# Use already typed text as prefix history with up and down arrows
"\e[A": history-search-backward
"\e[B": history-search-forward
#}}}
# Completion options {{{
# First press show the list of choice, then cycle through the results
set menu-complete-display-prefix on
# Filename completion/expansion
set completion-ignore-case on
set show-all-if-ambiguous on
# Color when completing filenames and directories
set colored-stats on
# When completing file with a long name in common
# only show the end of the name to complete
set completion-prefix-display-length 2
# Ignore case when completing
set completion-ignore-case on
# When completing treat hyphen and underscore as
# the same character
set completion-map-case on
# Append "/" to all dirnames
set mark-directories on
set mark-symlinked-directories on
#}}}