diff options
author | Colin Guthrie <colin@mageia.org> | 2011-10-21 01:28:48 +0100 |
---|---|---|
committer | Colin Guthrie <colin@mageia.org> | 2011-10-21 10:10:39 +0100 |
commit | be75c98a06d569fbaa2d86f92676af961795d094 (patch) | |
tree | e2ce8ce7ffb97af34164634a3fbd8630dc7463e8 /mandriva/inputrc.csh | |
parent | 4688ea25c9a5a87e48f89fc91a3c93a7c8c95b4a (diff) | |
download | initscripts-be75c98a06d569fbaa2d86f92676af961795d094.tar initscripts-be75c98a06d569fbaa2d86f92676af961795d094.tar.gz initscripts-be75c98a06d569fbaa2d86f92676af961795d094.tar.bz2 initscripts-be75c98a06d569fbaa2d86f92676af961795d094.tar.xz initscripts-be75c98a06d569fbaa2d86f92676af961795d094.zip |
Add the mdkconf patch
Diffstat (limited to 'mandriva/inputrc.csh')
-rw-r--r-- | mandriva/inputrc.csh | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/mandriva/inputrc.csh b/mandriva/inputrc.csh new file mode 100644 index 00000000..6ebf0dc4 --- /dev/null +++ b/mandriva/inputrc.csh @@ -0,0 +1,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 + |