blob: 252fbdb1eb91be365914968e75a2db9b1094e26f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
export CARGO_HOME=~/.local/cargo
export DENO_DIR=~/.local/deno
export GOPATH=~/.local/go
export LUAROCKS_CONFIG=~/.config/luarocks/config.lua
if (( $+commands[luarocks] )); then
PATH="$PATH:$(luarocks path --lr-bin)" # luarocks puts :s in the output
eval $(luarocks path --no-bin)
fi
if (( $+commands[opam] )); then
eval $(opam env)
fi
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)
)
|