On Tue, Jan 09, 2001 at 04:52:29PM -0800, Matt Dillon wrote:
If you just hit the up or down arrow without having partial text on the
line, it works just like normal history. Once you start using it,
you will never be able to go back.
As a side note - this is usually mapped to
:
:On Tue, Jan 09, 2001 at 04:52:29PM -0800, Matt Dillon wrote:
:
: If you just hit the up or down arrow without having partial text on the
: line, it works just like normal history. Once you start using it,
: you will never be able to go back.
:
:As a side note - this is usually
I think the patch below (in some form) was agreed upon a while ago
but nobody actually committed it.. in any case, are there any
objections?
This makes it so if root's shell is /bin/tcsh then CTRL-W erases
only the previous word instead of the entire line.
Thanks,
-Archie
On Tue, Jan 09, 2001 at 09:45:14AM -0800, Archie Cobbs wrote:
+ if ( `basename $SHELL` == "tcsh" ) then
+ bindkey ^W backward-delete-word
+ endif
I generally test for tcsh like this:
if ( $?tcsh ) then
bindkey ^W backward-delete-word
endif
:On Tue, Jan 09, 2001 at 09:45:14AM -0800, Archie Cobbs wrote:
:
: +if ( `basename $SHELL` == "tcsh" ) then
: +bindkey ^W backward-delete-word
: +endif
:
:I generally test for tcsh like this:
:
: if ( $?tcsh ) then
: bindkey ^W backward-delete-word
:
Matt Dillon wrote:
:On Tue, Jan 09, 2001 at 09:45:14AM -0800, Archie Cobbs wrote:
:
: + if ( `basename $SHELL` == "tcsh" ) then
: + bindkey ^W backward-delete-word
: + endif
:
:I generally test for tcsh like this:
:
: if ( $?tcsh ) then
: bindkey ^W
On Tue, 9 Jan 2001, Peter Wemm wrote:
Matt Dillon wrote:
:On Tue, Jan 09, 2001 at 09:45:14AM -0800, Archie Cobbs wrote:
:
: +if ( `basename $SHELL` == "tcsh" ) then
: +bindkey ^W backward-delete-word
: +endif
:
:I generally test for tcsh like
Matt Dillon writes:
if ( $?tcsh ) then
bindkey "^W" backward-delete-word
bindkey -k up history-search-backward
bindkey -k down history-search-forward
endif
Why do you need the 'up' and 'down' ones.. doesn't it already do that
without explicit configuration?
:Matt Dillon writes:
: if ( $?tcsh ) then
: bindkey "^W" backward-delete-word
: bindkey -k up history-search-backward
: bindkey -k down history-search-forward
: endif
:
:Why do you need the 'up' and 'down' ones.. doesn't it already do that
:without explicit