[zsh] added .zshenv

This commit is contained in:
Afonso Franco 2024-09-05 12:36:10 +01:00
parent 64b0a84e5a
commit 63753df2ae
Signed by: afonso
SSH key fingerprint: SHA256:PQTRDHPH3yALEGtHXnXBp3Orfcn21pK20t0tS1kHg54

16
.config/zsh/.zshenv Normal file
View file

@ -0,0 +1,16 @@
#This is used to reload the instance
TRAPUSR1() {
if [[ -o INTERACTIVE ]]; then
exec "${SHELL}"
fi
}
if [[ $(uname) == "Darwin" ]]; then
export JAVA_HOME="/opt/homebrew/opt/openjdk@17/libexec/openjdk.jdk/Contents/Home"
else
export LIBVA_DRIVER_NAME=nvidia
fi
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"