From 0cb4c9ebf726a9f782d9d6e2bd4a1dd4610411bf Mon Sep 17 00:00:00 2001 From: ange Date: Fri, 3 May 2024 22:30:33 +0200 Subject: [PATCH] fix: .zprofile do nothing if DISPLAY is set --- .config/nvim/pack/plugins/opt/treesitter | 2 +- .config/zsh/.zprofile | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.config/nvim/pack/plugins/opt/treesitter b/.config/nvim/pack/plugins/opt/treesitter index bbc67f7..99d3e79 160000 --- a/.config/nvim/pack/plugins/opt/treesitter +++ b/.config/nvim/pack/plugins/opt/treesitter @@ -1 +1 @@ -Subproject commit bbc67f736e22c37c23f2c11a05bfa23b715af30c +Subproject commit 99d3e799b46f5c2a1fc0d7a42d7ab452de48c067 diff --git a/.config/zsh/.zprofile b/.config/zsh/.zprofile index 0f96a94..9276445 100644 --- a/.config/zsh/.zprofile +++ b/.config/zsh/.zprofile @@ -1,9 +1,9 @@ export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)" -[ "$XDG_VTNR" = 1 ] && { +[ -z "$DISPLAY" ] && [ "$XDG_VTNR" = 1 ] && { GUILOG="$HOME/.local/share/xorg/gui.log" - mv "$GUILOG" "$GUILOG.old" + mv -f "$GUILOG" "$GUILOG.old" export XDG_CURRENT_DESKTOP=Unity exec startx &> "$GUILOG"