From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: zsh-users@zsh.org
Subject: Re: Tab Expanding Global Aliases
Date: Wed, 05 Feb 2014 14:48:21 +0100 [thread overview]
Message-ID: <31943.1391608101@thecus.kiddle.eu> (raw)
In-Reply-To: <XnsA2CB863A7CAD7davidrayninfocouk@80.91.229.13>
zzapper wrote:
> Oliver Kiddle <okiddle@yahoo.co.uk> wrote in
> > With global aliases, it is always worth considering using bindkey -s
> > instead. This expands the string immediately without needing a tab or
> > space.
> >
> > So for example:
> > bindkey -s 'Im' '| more'
> >
> I can get this to work but only if I begin the 'abbreviation' with I ???
There was a mistake in my example using a backslash. It should be, e.g.:
bindkey -s '\\m' "(#qu$EUID)"
You also have to be fairly fast if you've set KEYTIMEOUT low.
Oliver
next prev parent reply other threads:[~2014-02-05 13:54 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-04 18:10 zzapper
2014-02-04 19:34 ` Bart Schaefer
2014-02-04 20:43 ` zzapper
2014-02-04 23:52 ` Oliver Kiddle
2014-02-05 13:11 ` zzapper
2014-02-05 13:48 ` Oliver Kiddle [this message]
2014-02-05 14:50 ` zzapper
2014-02-05 15:04 ` Peter Stephenson
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=31943.1391608101@thecus.kiddle.eu \
--to=okiddle@yahoo.co.uk \
--cc=zsh-users@zsh.org \
/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).