Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
!!:$
- X-seq: zsh-users 8217
- From: keef <zsh@xxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: !!:$
- Date: Tue, 16 Nov 2004 08:45:39 -0500
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
yarr mateys!
consider the following:
% touch somefile
% chmod 755 !!:$
-this essentially will chmod 755 the last arg in the previous history cmd
now then, id like to incorporate this into my .zshrc
something to the effect of:
alias ch="chmod 755 !!:$"
but this produces the error:
chmod: cannot access `!!:$': No such file or directory
apparently its looking for a literal filname of "!!:$"
can anyone out there recommend a way to go about doing this ?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author