Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Creating short time aliases
- X-seq: zsh-users 10668
- From: Frank Terbeck <ft@xxxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Creating short time aliases
- Date: Mon, 04 Sep 2006 00:04:29 +0200
- In-reply-to: <20060903213021.GR23692@xxxxxxxxxxxx>
- Mail-followup-to: zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Operating-system: Linux 2.6.16.16 i686
- References: <20060903213021.GR23692@xxxxxxxxxxxx>
Jens Kubieziel <maillist@xxxxxxxxxxxx>:
> within bash I can use some pseudo-aliases:
> $ a really long command name # myalias
> $ Ctrl+R myalias
> The last command expands to 'a really long command name'. When I try
> this in zsh; i get an error "bad pattern: #". What would be a good
> zsh'ish way to get a similar result?
>
> Thanks for your recommendations
[snip]
% zsh -f
% echo this is one hell of a long command line. # myalias
this is one hell of a long command line. # myalias
% setopt extendedglob
% echo this is one hell of a long command line. # myalias
zsh: bad pattern: #
% setopt interactivecomments
% echo this is one hell of a long command line. # myalias
this is one hell of a long command line.
[snap]
Regards, Frank
Messages sorted by:
Reverse Date,
Date,
Thread,
Author