-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclink_inputrc
71 lines (49 loc) · 2.03 KB
/
clink_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
60
61
62
63
64
65
66
67
68
69
70
71
# ----------------------------- Config Settings ------------------------------
# Permit 8-bit characters (will permit UTF-8)
set input-meta on
set output-meta on
# Treat characters with eighth bit set as an ASCII key sequence
#set convert-meta on # Does horrible things to cmd if defined!
# Completely disable the terminal bell (audible & visual)
set bell-style none
# Set automatic completion of filenames to be case insensitive
set completion-ignore-case on
# Treat hypens and underscores as the same if completion-ignore-case is on
set completion-map-case on
# Confirm we want to show all possible matches if more than this limit
set completion-query-items 200
# Denote symlinks to directories with an appended slash
set mark-symlinked-directories on
# Do not autocomplete hidden files unless the pattern begins with a dot
set match-hidden-files off
# Show all autocomplete results at once instead of via the internal pager
set page-completions off
# List all matches in case multiple possible completions are possible
set show-all-if-ambiguous on
# Factor any text after the curser position into completion matching
set skip-completed-text on
# Show extra file information when completing similar to `ls -F`
set visible-stats on
# ------------------------------- Key Mappings -------------------------------
# Set Home/End keys to jump to beginning/end of line
"\e[1~": beginning-of-line
"\e[4~": end-of-line
# Set Delete/Insert keys to delete/insert chars on line
"\e[3~": delete-char
"\e[2~": quoted-insert
# Set Ctrl+Left-arrow/Ctrl+Right-arrow to move to adjacent word
"\e[1;5C": forward-word
"\e[1;5D": backward-word
# Use any entered text as the prefix for searching command history
"\e[B": history-search-forward
"\e[A": history-search-backward
# Use Alt/Meta + Delete to delete the preceding word
"\e[4;3~": kill-word
TAB: menu-complete
"\t": menu-complete
# Ctrl + R for history search with fzf
"\C-r": ' r\C-m'
# Ctrl + T for directory search with fzf
# Define Transpose words first and use it for C-t
"\et": transpose-words
"\C-t": "with\et\C-m"