Move environment variables into separate files per program/language

This commit is contained in:
crater2150 2019-02-11 16:05:04 +01:00
parent 6d287ef6d0
commit c9b5475e41
8 changed files with 17 additions and 49 deletions

1
env/10_path.zsh vendored Normal file
View file

@ -0,0 +1 @@
export PATH="$PATH:$HOME/.local/bin"

3
env/40_mail.zsh vendored Normal file
View file

@ -0,0 +1,3 @@
export MAILDIR=$HOME/.maildir
export NOTMUCH_CONFIG=$XDG_CONFIG_HOME/notmuch-config
export GNUPGHOME="$XDG_CONFIG_HOME"/gnupg

3
env/50_nodejs.zsh vendored Normal file
View file

@ -0,0 +1,3 @@
export NPM_PACKAGES="${XDG_DATA_HOME}/npm-packages"
export NODE_PATH="$NPM_PACKAGES/lib/node_modules:$NODE_PATH"
export PATH="$PATH:$NPM_PACKAGES/bin"

2
env/50_ruby.zsh vendored Normal file
View file

@ -0,0 +1,2 @@
RUBY_VERSION=${$(gem environment gemdir):t}
export PATH="$PATH:$HOME/.gem/ruby/$RUBY_VERSION/bin"

3
env/50_rust.zsh vendored Normal file
View file

@ -0,0 +1,3 @@
if which rustup &>/dev/null; then
export RUST_SRC_PATH=$(rustup run stable rustc --print sysroot)/lib/rustlib/src/rust/src
fi

1
env/60_fzf.zsh vendored Normal file
View file

@ -0,0 +1 @@
export FZF_DEFAULT_COMMAND="fd"