# shellcheck shell=sh
# User specific environment
export PATH="$HOME/.local/bin:$HOME/bin:$PATH"

# juliaup setup
export PATH="$HOME/.julia/juliaup/bin:$PATH"
export PATH="$HOME/.juliaup/bin:$PATH"

# Linuxbrew setup
if [ -d $HOME/../linuxbrew/.linuxbrew ]; then
  BREWPATH=$HOME/../linuxbrew/.linuxbrew
elif [ -d $HOME/.linuxbrew ]; then
  BREWPATH=$HOME/.linuxbrew
fi

if [ -n "$BREWPATH" ]; then
  eval "$($BREWPATH/bin/brew shellenv)"
  export HOMEBREW_MAKE_JOBS=1
  export HOMEBREW_NO_ANALYTICS=1
fi

if [ -e "$HOME/.nix-profile/etc/profile.d/nix.sh" ]; then
  . "$HOME/.nix-profile/etc/profile.d/nix.sh"
fi