Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Global Alias to "read" previous parameter?
- X-seq: zsh-users 12367
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Global Alias to "read" previous parameter?
- Date: Wed, 26 Dec 2007 08:15:29 -0800
- In-reply-to: <Xns9A129B3D45B14zzappergmailcom@xxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <Xns9A0CB9D49CBEFzzappergmailcom@xxxxxxxxxxxx> <071223154531.ZM17766@xxxxxxxxxxxxxxxxxxxxxx> <Xns9A129B3D45B14zzappergmailcom@xxxxxxxxxxxx>
On Dec 26, 3:15pm, zzapper wrote:
}
} $_ The last argument of the previous command.
}
} same as !$ but more useful as history is not available in an alias (?)
History is expanded before aliases are, so that's correct.
} is this zsh only? are there any more eg first argument
I believe this was borrowed from ksh. No, there are not any others,
but $_ is used for some other things in other contexts.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author