From 8539579b65ad87fe8a9ec143a09639c7b710153d Mon Sep 17 00:00:00 2001 From: psox Date: Thu, 8 Jul 2021 16:37:58 +0100 Subject: [PATCH] fix problem with xhost --- zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zshrc b/zshrc index 5f4b0f6..39fd880 100755 --- a/zshrc +++ b/zshrc @@ -266,7 +266,7 @@ if (( ${+terminfo[smkx]} )) && (( ${+terminfo[rmkx]} )); then fi [[ -d /cygdrive/c/qemu/ ]] && path+=( /cygdrive/c/qemu/ ) -[[ ! -z "$DISPLAY" ]] && xhost +LOCAL: +( which xhost &>/dev/null ) && [[ -n "$DISPLAY" ]] && xhost +LOCAL: # Set Time Variables precmd() {