From bf413997f826260d927867b393f80a23a991605f Mon Sep 17 00:00:00 2001 From: Konano Date: Thu, 4 Jul 2024 22:51:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=8F=90=E5=89=8D=E5=88=A4=E6=96=AD=20/?= =?UTF-8?q?proc/version=20=E6=98=AF=E5=90=A6=E5=AD=98=E5=9C=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- files/zsh/80-env.zsh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/files/zsh/80-env.zsh b/files/zsh/80-env.zsh index b754f62..b75cb29 100644 --- a/files/zsh/80-env.zsh +++ b/files/zsh/80-env.zsh @@ -23,7 +23,9 @@ if [ -d "$HOME/.yarn" ]; then fi # WSL1 -if grep -q Microsoft /proc/version; then - # Xming - export DISPLAY=:0; +if [ -f "/proc/version" ]; then + if grep -q Microsoft /proc/version; then + # Xming + export DISPLAY=:0; + fi fi