Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Alias for a dynamic variable?
- X-seq: zsh-users 10193
- From: zzapper <david@xxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Alias for a dynamic variable?
- Date: Thu, 27 Apr 2006 17:00:02 +0000 (UTC)
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Organization: SuccessTheory
- References: <Xns97B2AD9E7A62zzappergmailcom@xxxxxxxxxxx> <EXCHANGE03cWo7Z0xK40000be27@xxxxxxxxxxxxxxxxxx> <Xns97B2B2CC4E1Ezzappergmailcom@xxxxxxxxxxx> <EXCHANGE03iF5DIz5pF0000bf83@xxxxxxxxxxxxxxxxxx>
- Sender: news <news@xxxxxxxxxxxxx>
Peter Stephenson <pws@xxxxxxx> wrote in news:EXCHANGE03iF5DIz5pF0000bf83
@exchange03.csr.com:
> zzapper wrote:
>> 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 .
>
> You can already use ~- to refer to the relevant directory.
>
cp ~-/suk.jpg .
Thanx JWTDO
Dead obvious when you know how!
zzapper
Messages sorted by:
Reverse Date,
Date,
Thread,
Author