Add .zshenv
`.zshenv` is read for all shells, interactive or not, making it the best place to set variables that always apply. Unfortunately, it cannot be kept in `ZDOTDIR`, since that variable has to be set in that same script. To work around this, the "real" `.zshenv` can source the one in `ZDOTDIR`.
This commit is contained in:
@@ -1,6 +0,0 @@
|
||||
typeset -U path
|
||||
path[1,0]=~/.local/bin
|
||||
|
||||
if [[ -r ${ZDOTDIR:-${HOME}}/.zprofile.local ]]; then
|
||||
. ${ZDOTDIR:-${HOME}}/.zprofile.local
|
||||
fi
|
||||
6
.zshenv
Normal file
6
.zshenv
Normal file
@@ -0,0 +1,6 @@
|
||||
export EDITOR=vim
|
||||
|
||||
typeset -U path
|
||||
path[1,0]=~/.npm/bin
|
||||
path[1,0]=~/.cargo/bin
|
||||
path[1,0]=~/.local/bin
|
||||
Reference in New Issue
Block a user