From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2138 invoked by alias); 18 Nov 2012 18:35:31 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 17411 Received: (qmail 7496 invoked from network); 18 Nov 2012 18:35:31 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at closedmail.com does not designate permitted sender hosts) From: Bart Schaefer Message-id: <121118103514.ZM2913@torch.brasslantern.com> Date: Sun, 18 Nov 2012 10:35:14 -0800 In-reply-to: <50A82E58.4020104@eastlink.ca> Comments: In reply to Ray Andrews "sharing environment between terminals." (Nov 17, 4:39pm) References: <50A82E58.4020104@eastlink.ca> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-users@zsh.org Subject: Re: sharing environment between terminals. MIME-version: 1.0 Content-type: text/plain; charset=us-ascii 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.