Env variables in declared in home-fish-configuration not being exported

OpenSubmitted by Mbk Kamble.
Details
One participant
  • Mbk Kamble
Owner
unassigned
Severity
normal
M
M
Mbk Kamble wrote on 26 Jun 01:43 +0200
(address . bug-guix@gnu.org)
CAJ7XGSbHCPKDTFh+ZK4bevmj+5ifP1vMii8t=Vz_qVdvNKKXnQ@mail.gmail.com
Hi.
Env variables enumerated in home-fish-configuration are translated into
set VAR VALUE statements in config.fish file. This set VAR in global scope
which is fine. However, for fish shell, if variables are to be exported,
the command syntax is
set -x VAR VALUE

So serialize-fish-env-vars in gnu/home/services/shells.scm needs to be
modified from
#~(string-append "set " #$key " " #$value "\n") to
#~(string-append "set -x" #$key " " #$value "\n")


-Milind
Attachment: file
?