summaryrefslogtreecommitdiff
path: root/dot_zsh/source
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--dot_zsh/source/path.zsh25
1 files changed, 25 insertions, 0 deletions
diff --git a/dot_zsh/source/path.zsh b/dot_zsh/source/path.zsh
new file mode 100644
index 0000000..42b8c9d
--- /dev/null
+++ b/dot_zsh/source/path.zsh
@@ -0,0 +1,25 @@
+export CARGO_HOME=~/.local/cargo
+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)
+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