如题,在 /etc/profile 中增加 export TEST=aaa ,用 wsl -u xx 进入之后,export 中没有这个环境变量。
目前只找到一个折中的办法,我使用的是 zsh ,在.zshrc 里面 export 就有用。
除了进入之后 source /etc/profile ,还有啥好办法可以让 /etc/profile 生效吗
目前只找到一个折中的办法,我使用的是 zsh ,在.zshrc 里面 export 就有用。
除了进入之后 source /etc/profile ,还有啥好办法可以让 /etc/profile 生效吗