PATH variable in .zshenv or .zshrc

后端 未结 3 1142
爱一瞬间的悲伤
爱一瞬间的悲伤 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条回答
  •  孤城傲影
    2021-02-19 17:16

    I've got the same problem. The cause was my .zshrc (fresh install of oh-my-zsh) override PATH (ignoring existing value):

    export PATH="/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/core_perl"
    

    To fix, I comment the line.

提交回复
热议问题