-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinputrc
More file actions
64 lines (59 loc) · 1.56 KB
/
inputrc
File metadata and controls
64 lines (59 loc) · 1.56 KB
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
60
61
62
63
64
# vi mode
set editing-mode vi
set show-mode-in-prompt on
set vi-ins-mode-string "\1\e[01;92m\2╰─ 〉\1\e[0m\2"
set vi-cmd-mode-string "\1\e[01;33m\2╰─〈 \1\e[0m\2"
# paste as string (preserve indent)
set enable-bracketed-paste os
# no bell
set bell-style none
# color based on filetype
set colored-stats on
# common prefix colored
set colored-completion-prefix on
# ignore case
set completion-ignore-case on
# show possible match on first tab
set show-all-if-ambiguous on
# show many item
set completion-query-items 5000
# no "more-like" pager
set page-completions off
# hide ^C etc
set echo-control-characters off
# add '/' to directories...
set mark-directories on
# ...and to symlinks
set mark-symlinked-directories on
# set completion-display-width 1 # one column for completion
set keymap vi-insert
# "\M-h": backward-char
# "\M-l": forward-char
# "\M-j": next-history
# "\M-k": previous-history
"\C-w": shell-backward-kill-word
"\C-b": backward-char
"\C-f": forward-char
"\C-a": beginning-of-line
"\C-e": end-of-line
"\C-l": clear-screen
"\C-o": menu-complete-backward
"\C-j": next-history
"\C-k": previous-history
"\C-s": operate-and-get-next
# "\C-g": " | grep "
"\C-p": 'cd !$ \015'
"\C-x\C-e": edit-and-execute-command
"\C-x\C-r": re-read-init-file
# "\C-g\C-f": 'cd $(dirname $(readlink -f !$)) \015 && ls\015'
set keymap vi-command
"\C-x\C-e": edit-and-execute-command
"\C-a": beginning-of-line
"\C-e": end-of-line
"H": beginning-of-line
"L": end-of-line
"\C-l": vi-end-word
"\C-h": backward-word
"\C-j": next-history
"\C-k": previous-history
"\C-q": clear-screen