Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: zsh tips plea (tip of the day)



On Sat, 24 Jul 2004, zzapper wrote:

> Hi,
> 
> Anyway my super tip is
> 
> > vim =some_script 
> 
> where the = will find the file if it's anyway in your paths (where is 
> this in the doc?)

Let's see ... fire up "info zsh", type "i", search the index for "equal" 
and the first hit is:

EQUALS <Z>
     Perform = filename expansion.  (See *Note Filename Expansion::.)

Follow the link to Filename Expansion.  About half way down the 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.  If a command
exists by that name, the word is replaced by the full pathname of the
command.



Messages sorted by: Reverse Date, Date, Thread, Author