summaryrefslogtreecommitdiff
path: root/dot_zsh/source
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--dot_zsh/source/path.zsh21
1 files changed, 12 insertions, 9 deletions
diff --git a/dot_zsh/source/path.zsh b/dot_zsh/source/path.zsh
index 42b8c9d..252fbdb 100644
--- a/dot_zsh/source/path.zsh
+++ b/dot_zsh/source/path.zsh
@@ -3,15 +3,6 @@ export DENO_DIR=~/.local/deno
export GOPATH=~/.local/go
export LUAROCKS_CONFIG=~/.config/luarocks/config.lua
-path+=(
- ~/bin
- ~/Applications
- ~/.local/cargo/bin
- ~/.local/go/bin
- ~/.local/yarn/bin
- ~/.gem/ruby/*/bin(N)
-)
-
if (( $+commands[luarocks] )); then
PATH="$PATH:$(luarocks path --lr-bin)" # luarocks puts :s in the output
eval $(luarocks path --no-bin)
@@ -23,3 +14,15 @@ if (( $+commands[yarn] )) && [[ ! -f ~/.yarnrc ]]; then
yarn config set global-folder ~/.local/yarn/global
yarn config set prefix ~/.local/yarn
fi
+
+# high priority
+path=( ~/bin $path )
+
+# low priority
+path+=(
+ ~/Applications
+ ~/.local/cargo/bin
+ ~/.local/go/bin
+ ~/.local/yarn/bin
+ ~/.gem/ruby/*/bin(N)
+)