diff options
Diffstat (limited to 'zsh/env')
| -rw-r--r-- | zsh/env | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -14,3 +14,12 @@ setopt REMATCH_PCRE source_if_exists dotfiles-${UNAME}/zsh/env source_if_exists dotfiles-${DOMAIN}/zsh/env source_if_exists dotfiles-${HOST}/zsh/env + +() { + local dir + for dir in ~/{.local/bin,bin} ${GOPATH:-~/go}/bin; do + if [[ -d ${dir} && ${path[(I)${dir}]} -eq 0 ]]; then + path=(${dir} ${path}) + fi + done +} |
