Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Alias for a dynamic variable?
- X-seq: zsh-users 10191
- From: zzapper <david@xxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Alias for a dynamic variable?
- Date: Thu, 27 Apr 2006 16:34:38 +0000 (UTC)
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Organization: SuccessTheory
- References: <Xns97B2AD9E7A62zzappergmailcom@xxxxxxxxxxx> <EXCHANGE03cWo7Z0xK40000be27@xxxxxxxxxxxxxxxxxx>
- Sender: news <news@xxxxxxxxxxxxx>
Peter Stephenson <pws@xxxxxxx> wrote in news:EXCHANGE03cWo7Z0xK40000be27
@exchange03.csr.com:
> alias -g s='$OLDPWD'
this works such that I can
>cd s
but I cant do
>cp s/somefile .
So decided what I really want is just a shorter name for $OLDPWD
so I can do say
> cp $OP/somefile .
In fact tab completion helps so I don't have to type all of $OLDPWD
--
http://successtheory.com/tips/ Vim, Zsh, MySQL Tips
Messages sorted by:
Reverse Date,
Date,
Thread,
Author