From a8628abfa94e23f6cbe37c6b19be65dbac29d3e9 Mon Sep 17 00:00:00 2001 From: afonso Date: Sat, 1 Jun 2024 03:55:57 +0100 Subject: [PATCH] [zsh] Set JAVA_HOME only on macos --- .zshenv | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.zshenv b/.zshenv index a127c7e..c0fd380 100644 --- a/.zshenv +++ b/.zshenv @@ -4,4 +4,7 @@ TRAPUSR1() { exec "${SHELL}" fi } -export JAVA_HOME="/opt/homebrew/opt/openjdk@17/libexec/openjdk.jdk/Contents/Home" +if [[ $(uname) == "Darwin" ]]; then + export JAVA_HOME="/opt/homebrew/opt/openjdk@17/libexec/openjdk.jdk/Contents/Home" +fi +export LIBVA_DRIVER_NAME=nvidia