dotfiles/.config/zsh/.zshenv

37 lines
976 B
Text
Raw Normal View History

2024-09-05 12:36:10 +01:00
#This is used to reload the instance
TRAPUSR1() {
if [[ -o INTERACTIVE ]]; then
exec "${SHELL}"
fi
}
2024-09-12 23:38:28 +01:00
# Add exports
2024-09-05 12:36:10 +01:00
if [[ $(uname) == "Darwin" ]]; then
2024-09-12 23:38:28 +01:00
#ONLY MACOS
2024-09-05 12:36:10 +01:00
export JAVA_HOME="/opt/homebrew/opt/openjdk@17/libexec/openjdk.jdk/Contents/Home"
2024-09-12 23:38:28 +01:00
export PATH="/opt/homebrew/bin:$PATH"
export PATH="/opt/homebrew/opt/openjdk@17/bin:$PATH"
export PATH="/opt/homebrew/opt/texlive/bin:$PATH"
2024-09-05 12:36:10 +01:00
else
2024-09-12 23:38:28 +01:00
#ONLY LINUX
2024-09-05 12:36:10 +01:00
export LIBVA_DRIVER_NAME=nvidia
fi
2024-09-12 23:38:28 +01:00
#BOTH
export PATH="/usr/sbin:/sbin:$PATH"
export PATH="$HOME/.local/share/nvim/mason/bin:$PATH"
export PATH="$HOME/.local/bin:$PATH"
export PATH="$HOME/go/bin:$PATH"
export PATH="$HOME/.cargo/bin:$PATH"
export PATH="$HOME/.ghcup/bin:$PATH"
export PATH="$HOME/.miniforge3/bin:$PATH"
export PATH="$HOME/.cabal/bin:$PATH"
2024-09-05 12:36:10 +01:00
export XDG_CONFIG_HOME="${HOME}/.config"
export XDG_CACHE_HOME="${HOME}/.cache"
export XDG_DATA_HOME="${HOME}/.local/share"
export XDG_STATE_HOME="${HOME}/.local/state"