zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-users@zsh.org
Subject: Re: sharing environment between terminals.
Date: Sun, 18 Nov 2012 10:35:14 -0800	[thread overview]
Message-ID: <121118103514.ZM2913@torch.brasslantern.com> (raw)
In-Reply-To: <50A82E58.4020104@eastlink.ca>

On Nov 17,  4:39pm, Ray Andrews wrote:
}
} Is there a way to instantly share environment variables between running 
} terminals?

Generally speaking, no.  The environment of each process is private to
that process, allocated by the operating system at the time the process
is forked.

If desperate enough, you could set up something using the zsh/tcp module
to have your shells cooperatively swap new environment strings around.
One shell (or an external daeamon of some kind -- condsider the model
used by ssh-agent) would have to control the "master" environment, and
hand out changes to the other shells on request.  The other shells would
check at opportune times (during precmd for example) whether changes are
available, and apply them.


  reply	other threads:[~2012-11-18 18:35 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-18  0:39 Ray Andrews
2012-11-18 18:35 ` Bart Schaefer [this message]
2012-11-18 19:22   ` Ray Andrews
2012-11-18 19:33   ` Peter Stephenson
2012-11-18 23:11     ` Ray Andrews
2012-11-19  0:22 ` Phil Pennock
2012-11-19 16:23   ` Ray Andrews

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=121118103514.ZM2913@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --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).