* Re: The tcsh ^X? command
[not found] <199609110519.IAA15804@pulsar.Polar.Bear>
@ 1996-09-11 5:59 ` Chris P. Ross
1996-09-11 6:01 ` Geoff Wing
1 sibling, 0 replies; 2+ messages in thread
From: Chris P. Ross @ 1996-09-11 5:59 UTC (permalink / raw)
To: Dov Grobgeld; +Cc: zsh-users
dov@Orbotech.Co.IL (Dov Grobgeld) said:
> I'm a new user of zsh and the first thing I tried to do is to make
> sure that everything that I'm used to from tcsh exists.
> The one thing that got me stuck yesterday is the ^X? command which
> does a 'which ' of the last word and replaces it.
> Is there any way to do the same thing in zsh?
<ESC><B><=><TAB>
(Well, it performs the same function. (in emacs mode) :-)
- Chris
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: The tcsh ^X? command
[not found] <199609110519.IAA15804@pulsar.Polar.Bear>
1996-09-11 5:59 ` The tcsh ^X? command Chris P. Ross
@ 1996-09-11 6:01 ` Geoff Wing
1 sibling, 0 replies; 2+ messages in thread
From: Geoff Wing @ 1996-09-11 6:01 UTC (permalink / raw)
To: zsh-users; +Cc: Dov Grobgeld
Dov Grobgeld wrote:
:I'm a new user of zsh and the first thing I tried to do is to make
:sure that everything that I'm used to from tcsh exists.
:
:The one thing that got me stuck yesterday is the ^X? command which
:does a 'which ' of the last word and replaces it.
:E.g.
:
: ls -l perl^X?
: ls -l /usr/local/bin/perl
:
:Is there any way to do the same thing in zsh?
If you have ``setopt equals'' set (it is by default) then
ls -l =perl<TAB>
will do it.
<TAB> is normally bound to `expand-or-complete' with emacs bindings
or vi-insert-mode bindings.
>From zshexpn manual page:
`If a word begins with an unquoted = and the EQUALS option'
`is set, the remainder of the word is taken as the name of'
`a command or alias. If a command exists by that name, the'
`word is replaced by the full pathname of the command. If'
`an alias exists by that name, the word is replaced with'
`the text of the alias.'
--
Geoff Wing [mason@primenet.com.au] PrimeNet - Internet Consultancy
Web: http://www.primenet.com.au/ Facsimile: +61-3-9819 3788
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1996-09-11 6:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <199609110519.IAA15804@pulsar.Polar.Bear>
1996-09-11 5:59 ` The tcsh ^X? command Chris P. Ross
1996-09-11 6:01 ` Geoff Wing
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).