Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[Feature Request]: Globally updated Variables for all zsh instances for same user - just like fish shell
- X-seq: zsh-workers 35777
- From: Zaxebo Yaxebo <zaxebo1@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [Feature Request]: Globally updated Variables for all zsh instances for same user - just like fish shell
- Date: Sun, 12 Jul 2015 18:42:46 +0530
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=ZQxmknukh+tCNqk3y52znwbY65s8EZ00/E1hS6cFlnk=; b=XUytKO3Yd9grqKmrlUkUCDVZ+nAdYjLfqHY1EiMHIhOgM4dKxFsjuEBdVrz3kGtrk2 iqBzhY6La5nKexCCaO9TNCly1dC9Ry5MOdvOpZgxz3RCqCnCfR91aUqlK35kaEyUvcr/ UJBqQuQ0VCSXmCyNx2Eel825RvBv8C7O9/LnuB19GDNEJDNwG+TN+Xh/JHiRd1M28RNW F7kPG3oNn8jRdzFBh5Q3aVyPPBUpVACsAUJlW1wudPlAuvZzj1Du56rm0F7MOpSEdK/Q PPIrOx32F7xk9k+wU1OFk/J2WouHJtRl7T8yk2FBYIjuLny0AAZUHqU3rOXXV/tba+gB 0jAw==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
https://en.wikipedia.org/wiki/Friendly_interactive_shell#Universal_variables
Universal variables
*"Fish Shell" has a feature known as universal variables, which allow a
user to permanently assign a value to a variable across all the running
fish shells of that user. The variable value is remembered across logouts
and reboots, and updates in value are immediately propagated to all running
shells.*
# This will make emacs the default text editor. The '-U' tells fish to
# make this a universal variable.
> set -U EDITOR emacs
# This command will make the current working directory part of the fish
# prompt turn blue on all running fish instances.
> set -U fish_color_cwd blue
=======================
I request that this feature may be implemented in zsh
If I have two different zsh shell instances running from same user login
and i give this following command in one zsh instance
export -U varname=varvalue
OR, exportglobal varname=varvalue
then i can access it in my another zsh instance running from the same
userlogin.
Zax
Messages sorted by:
Reverse Date,
Date,
Thread,
Author