Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Creating short time aliases



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