summary refs log tree commit diff stats
path: root/tag-zsh/config
diff options
context:
space:
mode:
authorAlan Pearce2016-07-14 18:17:18 +0200
committerAlan Pearce2016-07-14 18:20:43 +0200
commita8dec38180ea0fc6f9b509b32c1963a220c829c1 (patch)
tree64af0ae2ad4e5419117693c89a8822fb25cce8c7 /tag-zsh/config
parentd572253f235621e4575d9328232d76eefce20a0f (diff)
downloadnixfiles-a8dec38180ea0fc6f9b509b32c1963a220c829c1.tar.lz
nixfiles-a8dec38180ea0fc6f9b509b32c1963a220c829c1.tar.zst
nixfiles-a8dec38180ea0fc6f9b509b32c1963a220c829c1.zip
zsh: Fix zsh envvars in X11 terminals
Diffstat (limited to 'tag-zsh/config')
-rw-r--r--tag-zsh/config/zsh/zshenv2
1 files changed, 1 insertions, 1 deletions
diff --git a/tag-zsh/config/zsh/zshenv b/tag-zsh/config/zsh/zshenv
index 98050a0d..6c3721f8 100644
--- a/tag-zsh/config/zsh/zshenv
+++ b/tag-zsh/config/zsh/zshenv
@@ -1,4 +1,4 @@
-if [[ $SHLVL = 1 ]]
+if [[ $SHLVL -eq 1 || (-n $DISPLAY && $SHLVL -lt 3) ]]
 then
 	if [[ -f $ZDOTDIR/zshenv.local ]]
 	then