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

  • Open
  • quality assurance status badge
Details
One participant
  • Mbk Kamble
Owner
unassigned
Submitted by
Mbk Kamble
Severity
normal
M
M
Mbk Kamble wrote on 26 Jun 2022 01:43
(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
?