Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
multi-alias syntax
- X-seq: zsh-workers 35592
- From: Emanuel Berg <embe8573@xxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: multi-alias syntax
- Date: Wed, 24 Jun 2015 19:16:10 +0200
- Cancel-lock: sha1:jHj9SzkPmqc8heZH2Bqx3+IuhB8=
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mail-copies-to: never
- Mail-followup-to: zsh-workers@xxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
Is there a better way to do, e.g.
debian-version () { lsb_release -a }
for a in debian-ver version ver; do
alias $a=debian-version
done
as
alias a b c=d
doesn't set a and b to d, only c.
--
underground experts united
http://user.it.uu.se/~embe8573
Messages sorted by:
Reverse Date,
Date,
Thread,
Author