From: Frank Terbeck <ft@bewatermyfriend.de>
To: zsh-users@sunsite.dk
Subject: Re: Creating short time aliases
Date: Mon, 04 Sep 2006 00:04:29 +0200 [thread overview]
Message-ID: <20060903220429.GA27818@fsst.voodoo.lan> (raw)
In-Reply-To: <20060903213021.GR23692@kubieziel.de>
Jens Kubieziel <maillist@kubieziel.de>:
> 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
next prev parent reply other threads:[~2006-09-03 22:05 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-03 21:30 Jens Kubieziel
2006-09-03 22:04 ` Frank Terbeck [this message]
2006-09-03 22:36 ` Wayne Davison
2006-09-04 15:23 ` zzapper
2006-09-04 17:54 ` Bart Schaefer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060903220429.GA27818@fsst.voodoo.lan \
--to=ft@bewatermyfriend.de \
--cc=zsh-users@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).