Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
_expand_alias does not expand aliases that contain an "!"
- X-seq: zsh-workers 33056
- From: Jonathan H <pythonnut@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: _expand_alias does not expand aliases that contain an "!"
- Date: Tue, 26 Aug 2014 09:50:08 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=VvGD67ga1+O3ouHTVtXd4BcAxqObsT170RdEX0wuNm0=; b=fRDJeFnESHCfRI0k0H5D9yDkWm+CB4b39qLJsehS9UNAzMy9CJ3vwDUBjn9Ng3O+Yr uh/vC+Wdw95hlqn8wl1FMVffFVk6UlahyRgZiT75VIE9fL6/ngU2yFd8cJCR61Qi42nw CapfIKPA/3Puv8j1o4AJgo8NYgyjSxR8zLbgAOQ1k86rv3FLmxBoAH9kIOYb5bEZpLPW Oy8Rez0ZjaeJe7JRedpwoWV8GMRBtsUOWGyIIsLFnlwdL1QyhANPm+TRsW7oCURXcE45 UDhLUu25AomsaTN90DYIQn5IRCEOMm5rfwHI0EWpgkaBn2zOcmx+vC+es+R+dhxHTCBD tthQ==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
Hello everyone!
Aliases that contain an exclamation point are not correctly expanded
by _expand_alias. For example:
[pythonnut ~.z <2>]% zsh -f
Heptagon% autoload -Uz compinit && compinit
Heptagon% bindkey "^X^E" _expand_alias
Heptagon% alias 'gc!'="git commit --amend"
Heptagon% alias ls="echo"
Heptagon%
ls will expand on ^X^E to "echo " but gc! won't.
Thanks,
PythonNut
Messages sorted by:
Reverse Date,
Date,
Thread,
Author