Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh tips plea (tip of the day)
- X-seq: zsh-users 7763
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: zsh tips plea (tip of the day)
- Date: Sat, 24 Jul 2004 11:44:09 -0700 (PDT)
- In-reply-to: <g745g0tvphahufis91gumvrffu1nbubhaa@xxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <bfs1g0phq8ojapt75pdnc19scq816grdhv@xxxxxxx> <g745g0tvphahufis91gumvrffu1nbubhaa@xxxxxxx>
- Reply-to: zsh-users@xxxxxxxxxx
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