-
Notifications
You must be signed in to change notification settings - Fork 0
/
inputrc
41 lines (32 loc) · 1.14 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
#Run 'bind -f ~/.inputrc' to source immediately instead of on login
#Inputrc deals with the mapping of the keyboard for certain situations. This file is the start-up file used by readline, the input related library used by bash and most other shells.
set editing-mode vi
set keymap vi-command
Control-l: clear-screen
set keymap vi-insert
Control-l: clear-screen
#Readline Commands
#https://codeinthehole.com/tips/the-most-important-command-line-tip-incremental-history-searching-with-inputrc/
"\e[A": history-search-backward
"\e[B": history-search-forward
"\e[C": forward-char
"\e[D": backward-char
#https://www.topbug.net/blog/2017/07/31/inputrc-for-humans/
set colored-stats On
set completion-ignore-case On
set completion-prefix-display-length 3
set mark-symlinked-directories On
set show-all-if-ambiguous On
set show-all-if-unmodified On
set visible-stats On
set expand-tilde on
set convert-meta off
set input-meta on
set output-meta on
#Go back to previous directory
#Option + z
"\ez": 'cd -\015'
#Jump to the target folder of the last command and run ls with Option-x (Options key=alt)
"\ex": 'cd !$ \015ls\015'
#Remove bell sound
set bell-style none