-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinputrc
24 lines (21 loc) · 1.13 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
# ignoring case for tab completion of filenames
set completion-ignore-case on
# Immediately add a trailing slash when autocompleting symlinks to directories
set mark-symlinked-directories on
# Be more intelligent when autocompleting by also looking at the text after
# the cursor. For example, when the current line is "cd ~/src/mozil", and
# the cursor is on the "z", pressing Tab will not autocomplete it to "cd
# ~/src/mozillail", but to "cd ~/src/mozilla". (This is supported by the
# Readline used by Bash 4.)
set skip-completed-text on
# These commands are useful for Putty -> bash character handling
# when Putty is set to standard home/end, ESC[n~ for function keys,
# and Ctrl-? (127) for backspace. Otherwise YMMV
"\e[1~": beginning-of-line # Home key
"\e[4~": end-of-line # End key
"\e[5~": beginning-of-history # PageUp key
"\e[6~": end-of-history # PageDown key
"\e[3~": delete-char # Delete key
"\e[2~": quoted-insert # Insert key
"\eOD": backward-word # Ctrl + Left Arrow key (git-for-windows Alt+Left)
"\eOC": forward-word # Ctrl + Right Arrow key (git-for-windows Alt+Right)