-
Notifications
You must be signed in to change notification settings - Fork 0
/
.inputrc
69 lines (53 loc) · 1.69 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
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
# https://linux.die.net/man/1/bash
# search "readline"
# none, visible or audible
set bell-style none
# auto complete
set completion-query-items 40
set completion-ignore-case on
set disable-completion off
set history-preserve-point on
set horizontal-scroll-mode off
# disable/enable 8bit input
set input-meta on
set output-meta on
set convert-meta off
# visible-stats
# Append a mark according to the file type in a listing
set visible-stats off
set mark-directories on
set mark-symlinked-directories on
# Beep first, show all only upon double-Tab
set show-all-if-ambiguous off
# MSYSTEM is emacs based
$if mode=emacs
# Mintty
# movement
"\e[1;5D": backward-word # Ctrl-Left
"\e[1;5C": forward-word # Ctrl-Right
"\eOA": history-search-backward # Up
"\eOB": history-search-forward # Down
"\e[4~": end-of-line # End Key
"\e[3~": delete-char # Delete Key
"\e[1~": beginning-of-line # Home Key
"\e[1;5A": history-search-backward
"\e[15~": re-read-init-file # Function Key 5
"\e[3;5~": kill-word # Ctrl-Delete
"\C-_": backward-kill-word # Ctrl-Backspace
"\C-P": history-search-backward # Ctrl-P
"\C-N": history-search-forward # Ctrl-N
"\C-W": # Ctrl-W
# $if term=msys
# "\e[7~": beginning-of-line # Home Key
# "\e[8~": end-of-line # End Key
# "\e[11~": display-shell-version # F1
# "\e[15~": backward-kill-word # F5
# $endif
#
# $if term=cygwin
# "\e[A": previous-history # Cursor Up
# "\e[B": next-history # Cursor Down
# "\e[C": forward-char # Cursor Right
# "\e[D": backward-char # Cursor Left
# $endif
$endif