From 63753df2ae8520c33c1a007ffe3f336ead456b09 Mon Sep 17 00:00:00 2001 From: afonso Date: Thu, 5 Sep 2024 12:36:10 +0100 Subject: [PATCH] [zsh] added .zshenv --- .config/zsh/.zshenv | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .config/zsh/.zshenv diff --git a/.config/zsh/.zshenv b/.config/zsh/.zshenv new file mode 100644 index 0000000..9038d98 --- /dev/null +++ b/.config/zsh/.zshenv @@ -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" +