diff options
Diffstat (limited to '.config/zsh')
| -rw-r--r-- | .config/zsh/.zshenv | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/.config/zsh/.zshenv b/.config/zsh/.zshenv index e63874b..d0614df 100644 --- a/.config/zsh/.zshenv +++ b/.config/zsh/.zshenv @@ -1,15 +1,18 @@ # # getchoo's zshenv # - source "${HOME}/.config/shell/profile" -# add user's bin directory to path -typeset -U path PATH +# add user directories to path +typeset -U paths=("$HOME/.local/bin" \ + "$HOME/.local/share/nvim/mason/bin" \ +) + +typeset -U path -if [[ -d "${HOME}/.local/bin" ]]; then - path=("${HOME}/.local/bin" "$path[@]") - export PATH -fi +for p in "${paths[@]}"; do + [[ -d "$p" ]] && \ + path=("$p" "$path[@]") +done zstyle ':antidote:bundle' use-friendly-names 'yes' # don't use ugly dirs |
