mirror of
https://github.com/ksherlock/a2-terminfo.git
synced 2025-03-12 03:30:28 +00:00
bash code for initializing terminals to work better in bash.
This commit is contained in:
parent
edb0a6afcb
commit
5421fb3647
33
bashrc
Normal file
33
bashrc
Normal file
@ -0,0 +1,33 @@
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user