Dangerous use of 'rm'

Stephen Allen freebsduk at rowyerboat.com
Fri Jul 14 22:34:53 BST 2006

Mark Ovens wrote:
>          if ( $?tcsh || $?csh ) then
>                  bindkey "^W" backward-delete-word
>                  bindkey -k up history-search-backward
>                  bindkey -k down history-search-forward
>                  bindkey "^?" delete-char
>                  bindkey "\e[3~" delete-char
>                  bindkey "\e[1~" beginning-of-line
>                  bindkey "\e[4~" end-of-line
>          endif

Thanks Mark!

Although you said you could add it to ~/.cshrc, if that was the case you 
wouldn't need the if block?

The syntax was ever so slightly different for bash, eg.

    "\e[1~": beginning-of-line

...but basically it works beautifully.  However, sticking them in 
/etc/profile (the first thing bash looks for) didn't work.  What you 
need to do is specify an INPUTRC in /etc/profile, then add these keys to 
/etc/inputrc (or whatever input file you chose).

Thanks again!
Steve :)

More information about the Ukfreebsd mailing list