-
Notifications
You must be signed in to change notification settings - Fork 0
/
.inputrc
18 lines (17 loc) · 1.75 KB
/
.inputrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
"\e[A": history-search-backward # Up arrow does a reverse history search
"\e[B": history-search-forward # Down arrow does a forward history search
"\e[C": forward-char # Left key moves one character to the left
"\e[D": backward-char # Right key moves one character to the right
"\e[1;5D": backward-word # Ctrl-Left moves one word to the left
"\e[1;5C": forward-word # Ctrl-Right moves one word to the right
"\es":"\C-asudo \C-e" # Alt-S prefixes the line with `sudo` and takes the cursor to end of line
"\em":"\C-aman \C-e" # Alt-M prefixes the command with `man` and takes the cursor to EOL
"\e[3;5~": kill-word # Deletes the next word (left -> right)
set colored-stats on # display possible completions using different color
set completion-ignore-case off # filename matching is case sensitive
set completion-map-case on # treat '-' and '_' as equivalent when performing filename matching
set completion-prefix-display-length 2 # common prefixes longer than this value is replaced with an ellipsis
set echo-control-characters off # don't echo character (eg. ^C) corresponding to the signal (eg. Ctrl-C)
set mark-symlinked-directories on # completed names which are symbolic links to directories have a slash appended
set revert-all-at-newline on # undo changes to history lines when newline is received
set visible-stats on # character denoting the filetype is appended when listing possible completions