PATH variable in .zshenv or .zshrc

后端 未结 3 1151
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-19 16:50

My setup is zsh 5.0.5 in arch linux

I have set the PATH variable as below in .zshenv

typeset -U path
path=(~/bin $path)
DW=$HOME/Downloads
3条回答
  •  旧时难觅i
    2021-02-19 17:15

    I just encountered this problem myself, and the real answer is that Zsh on Arch sources /etc/profile – which overwrites and exports PATHafter having sourced ~/.zshenv.

    See: https://wiki.archlinux.org/index.php/Zsh#Configuration_files

提交回复
热议问题