Move environment variables into separate files per program/language
This commit is contained in:
parent
6d287ef6d0
commit
c9b5475e41
8 changed files with 17 additions and 49 deletions
24
zshenv
24
zshenv
|
@ -1,24 +1,8 @@
|
|||
export ZDOTDIR=$HOME/.config/zsh
|
||||
export ZDOTDIR=${XDG_CONFIG_HOME:-$HOME/.config}/zsh
|
||||
|
||||
ZMODLOAD_BLACKLIST=( ssh-agent )
|
||||
export ZMODLOAD_BLACKLIST
|
||||
if [ -n "$TMUX" ]; then export SHELL=/usr/bin/tmux; fi
|
||||
|
||||
export MAILDIR=$HOME/.maildir export NOTMUCH_CONFIG=$HOME/.config/notmuch-config
|
||||
export GNUPGHOME="$XDG_CONFIG_HOME"/gnupg
|
||||
export FZF_DEFAULT_COMMAND="fd"
|
||||
export NPM_PACKAGES="${XDG_DATA_HOME}/npm-packages"
|
||||
export NODE_PATH="$NPM_PACKAGES/lib/node_modules:$NODE_PATH"
|
||||
|
||||
PATH="$PATH:$HOME/.gem/ruby/2.5.0/bin"
|
||||
PATH="$PATH:$NPM_PACKAGES/bin"
|
||||
PATH="$PATH:$HOME/.local/bin"
|
||||
PATH="$PATH:$XDG_DATA_HOME/android/sdk/tools"
|
||||
export PATH
|
||||
|
||||
if command -v rustup &>/dev/null; then
|
||||
export RUST_SRC_PATH=$(rustup run stable rustc --print sysroot)/lib/rustlib/src/rust/src
|
||||
fi
|
||||
for i in $ZDOTDIR/env/*.zsh; do
|
||||
. $i
|
||||
done
|
||||
|
||||
if [[ -e $ZDOTDIR/dirs ]]; then
|
||||
source $ZDOTDIR/dirs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue