|
|
|
#
|
|
|
|
# Defines environment variables.
|
|
|
|
#
|
|
|
|
# Authors:
|
|
|
|
# Sorin Ionescu <sorin.ionescu@gmail.com>
|
|
|
|
#
|
|
|
|
|
|
|
|
# Ensure that a non-login, non-interactive shell has a defined environment.
|
|
|
|
if [[ ( "$SHLVL" -eq 1 && ! -o LOGIN ) && -s "${ZDOTDIR:-$HOME}/.zprofile" ]]; then
|
|
|
|
source "${ZDOTDIR:-$HOME}/.zprofile"
|
|
|
|
fi
|
|
|
|
|
|
|
|
export PATH="$HOME/.dotfiles/bin:$HOME/.cargo/bin:/usr/local/bin:$HOME/.local/bin:$PATH"
|
|
|
|
|
|
|
|
if command -v brew &> /dev/null; then
|
|
|
|
if [[ -s `brew --prefix`/share/chruby/chruby.sh ]]; then
|
|
|
|
source `brew --prefix`/share/chruby/chruby.sh
|
|
|
|
source `brew --prefix`/share/chruby/auto.sh
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
if command -v direnv &> /dev/null; then
|
|
|
|
eval "$(direnv hook zsh)"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -e ~/.nix-profile/etc/profile.d/nix.sh ]; then . ~/.nix-profile/etc/profile.d/nix.sh; fi
|
|
|
|
if [ -e /Users/alpha/.nix-profile/etc/profile.d/nix.sh ]; then . /Users/alpha/.nix-profile/etc/profile.d/nix.sh; fi # added by Nix installer
|
|
|
|
. "$HOME/.cargo/env"
|