From 41ef97406528e066219367d9798f3d1b23ad175c Mon Sep 17 00:00:00 2001 From: Chloe Kudryavtsev Date: Wed, 22 Jan 2020 19:39:59 -0500 Subject: zsh/path: init --- dot_zsh/source/path.zsh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 dot_zsh/source/path.zsh (limited to 'dot_zsh') diff --git a/dot_zsh/source/path.zsh b/dot_zsh/source/path.zsh new file mode 100644 index 0000000..cdc45a7 --- /dev/null +++ b/dot_zsh/source/path.zsh @@ -0,0 +1,24 @@ +export CARGO_HOME=~/.local/cargo +export DENO_DIR=~/.local/deno +export GOPATH=~/.local/go +export LUAROCKS_CONFIG=~/.config/luarocks/config.lua + +path+=( + ~/bin + ~/.local/cargo/bin + ~/.local/go/bin + ~/.local/yarn/bin + ~/.gem/ruby/*/bin(N) +) + +if (( $+commands[luarocks] )); then + path+=( $(luarocks path --lr-bin) ) + 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 -- cgit v1.2.3