summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Guschin <guschin@altlinux.org>2024-07-25 12:36:25 +0400
committerAndrew Guschin <guschin@altlinux.org>2024-07-25 12:36:25 +0400
commit6cef7dd69713b18bceb8f38080bbe720f45c7483 (patch)
tree4375d64cab94e3bfc41bbfa3ea5df1486e95f290
parente58ddaedd6d5d843d289d6b9eaad5c18dc353559 (diff)
don't execute zellij on start of shell if EMACS variable is non-zero
-rw-r--r--.zshrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/.zshrc b/.zshrc
index 6ad548e..0f69bb3 100644
--- a/.zshrc
+++ b/.zshrc
@@ -73,6 +73,6 @@ source $HOME/.zprofile
# # exec tmux
# fi
-if command -v zellij &> /dev/null && [ -n "$PS1" ] && [[ ! "$TERM" =~ screen ]] && [[ ! "$TERM" =~ tmux ]] && [ -z "$ZELLIJ" ]; then
+if command -v zellij &> /dev/null && [ -n "$PS1" ] && [[ ! "$TERM" =~ screen ]] && [[ ! "$TERM" =~ tmux ]] && [ -z "$ZELLIJ" ] && [ -z "$EMACS" ]; then
exec zellij
fi