-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbashrc
53 lines (43 loc) · 1.42 KB
/
bashrc
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
if [ _$TERM = "_gno-console" ]; then
stty kill ^X # default line kill char is ^U (right arrow)
bind Control-H:backward-char
bind Control-U:forward-char
bind Control-J:next-history
bind Control-K:previous-history
bind Control-X:unix-line-discard
fi
if [ _$TERM = "_gsos-console" ]; then
stty kill ^X # default line kill char is ^U (right arrow)
stty oxtabs # expand tabs to spaces
tput init # make sure CR doesn't also LF.
bind Control-H:backward-char
bind Control-U:forward-char
bind Control-J:next-history
bind Control-K:previous-history
bind Control-X:unix-line-discard
fi
if [ _$TERM = "_proterm-special" ]; then
stty kill ^X # default line kill char is ^U (right arrow)
bind Control-H:backward-char
bind Control-U:forward-char
bind Control-J:next-history
bind Control-K:previous-history
bind Control-X:unix-line-discard
fi
if [ _$TERM = "_appleIIe" ]; then
stty kill ^X # default line kill char is ^U (right arrow)
bind Control-H:backward-char
bind Control-U:forward-char
bind Control-J:next-history
bind Control-K:previous-history
bind Control-X:unix-line-discard
fi
if [ _$TERM = "_appleIII" ]; then
stty kill ^X # default line kill char is ^U (right arrow)
stty oxtabs cs7 # expand tabs to spaces, 7-bit text.
bind Control-H:backward-char
bind Control-U:forward-char
bind Control-J:next-history
bind Control-K:previous-history
bind Control-X:unix-line-discard
fi