Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: sound policy on global variables for "distributed" DWIM function
- X-seq: zsh-users 20340
- From: Emanuel Berg <embe8573@xxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: sound policy on global variables for "distributed" DWIM function
- Date: Thu, 23 Jul 2015 01:25:58 +0200
- Cancel-lock: sha1:HQ5CZQJZ/zTKlUpRXRBL0bVxFNA=
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mail-copies-to: never
- Mail-followup-to: zsh-users@xxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <87fv4hm3ia.fsf@nl106-137-147.student.uu.se> <20150722135519.GA11359@Qliphoth.local>
Joshua Krusell <js.shirin@xxxxxxxxx> writes:
> Define a variable in your script, export an
> environmental var if it's being sourced (beware name
> collisions, use a prefix), or even pass it as an
> argument; it's up to you.
Indeed :)
Yes, it is sourced in ~/.zshrc.
But it doesn't have to be global outside the file
where those couple of functions are defined.
--
underground experts united
http://user.it.uu.se/~embe8573
Messages sorted by:
Reverse Date,
Date,
Thread,
Author