From: Emanuel Berg <embe8573@student.uu.se>
To: zsh-users@zsh.org
Subject: Re: sound policy on global variables for "distributed" DWIM function
Date: Thu, 23 Jul 2015 01:25:58 +0200 [thread overview]
Message-ID: <87zj2nsrjt.fsf@nl106-137-147.student.uu.se> (raw)
In-Reply-To: <20150722135519.GA11359@Qliphoth.local>
Joshua Krusell <js.shirin@gmail.com> 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
next prev parent reply other threads:[~2015-07-22 23:27 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-22 0:37 Emanuel Berg
2015-07-22 13:55 ` Joshua Krusell
2015-07-22 23:25 ` Emanuel Berg [this message]
2015-07-23 1:41 ` 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=87zj2nsrjt.fsf@nl106-137-147.student.uu.se \
--to=embe8573@student.uu.se \
--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).