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


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
 # 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


Messages sorted by: Reverse Date, Date, Thread, Author