Re: proposed small change to .cshrc

2001-01-10 Thread David Malone
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

Re: proposed small change to .cshrc

2001-01-10 Thread Matt Dillon
: :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

proposed small change to .cshrc

2001-01-09 Thread Archie Cobbs
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

Re: proposed small change to .cshrc

2001-01-09 Thread Jon Parise
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

Re: proposed small change to .cshrc

2001-01-09 Thread Matt Dillon
: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 :

Re: proposed small change to .cshrc

2001-01-09 Thread Peter Wemm
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

Re: proposed small change to .cshrc

2001-01-09 Thread Daniel Eischen
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

Re: proposed small change to .cshrc

2001-01-09 Thread Archie Cobbs
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?

Re: proposed small change to .cshrc

2001-01-09 Thread Matt Dillon
: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