From edca2f3f09ab84dc1075cb41e35bc6cb9312aa91 Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Wed, 27 Oct 2021 07:19:33 +0200 Subject: [PATCH] [ZSHRC] Updated WSL check for WSLG --- shells/zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shells/zshrc b/shells/zshrc index 2ec488e..00c2986 100644 --- a/shells/zshrc +++ b/shells/zshrc @@ -165,7 +165,7 @@ fi ### WSL STUFF ### ################# -if [[ -n $WSL_DISTRO_NAME ]]; +if [[ -n $WSL_DISTRO_NAME ]] && [[ ! -d /mnt/wslg ]]; then export DISPLAY=$(ip route | awk '{print $3; exit}'):0 export LIBGL_ALWAYS_INDIRECT=1