aboutsummaryrefslogtreecommitdiffstats
path: root/mandriva/inputrc.csh
blob: 6ebf0dc4e49eebae644a2718457464f6128fa589 (plain)
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
test -f $HOME/.inputrc || setenv INPUTRC /etc/inputrc
setenv LESS -MM
test -f $HOME/.less || setenv LESSKEY /etc/.less

# but tcsh command line doesn't use inputrc, so we have to define the
# keys here:
bindkey "\e[3~" delete-char
bindkey "^[[^@" beginning-of-line
bindkey "[5~" down-history
bindkey "[6~" up-history
bindkey "\e[1~" beginning-of-line
bindkey "\e[4~" end-of-line
bindkey "\e\C-h" backward-delete-word
bindkey "\e\C-?" delete-word
bindkey "\e\e[3~" delete-word
# rxvt
bindkey "\e[7~" beginning-of-line
bindkey "\e[8~" end-of-line
# some xterms
bindkey "\e[H" beginning-of-line
bindkey "\e[F" end-of-line
# nxterms
bindkey "\e[\C-@" beginning-of-line
bindkey "\e[e" end-of-line
# some more X11 oddity
bindkey "\eOD" backward-char
bindkey "\eOC" forward-char
bindkey "\eOB" down-history
bindkey "\eOA" up-history
# the BackSpace key sends ^? or ^H, depending on config
setenv BSNUM 14
setenv BACKSPACE `dumpkeys |& grep "^keycode  $BSNUM" | awk '{print $4}'`
if ($BACKSPACE == "BackSpace") then
   bindkey "^?" delete-char
   bindkey "^H" backward-delete-char
else
   bindkey "^?" backward-delete-char
   bindkey "^H" delete-char
endif