summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.zprofile2
1 files changed, 1 insertions, 1 deletions
diff --git a/.zprofile b/.zprofile
index fa8160b..e47e9ad 100644
--- a/.zprofile
+++ b/.zprofile
@@ -1,4 +1,4 @@
-if type screen &>/dev/null && [[ -e ~/.screenrc-2 ]]; then
+if [[ -z $DISPLAY ]] && type screen &>/dev/null && [[ -e ~/.screenrc-2 ]]; then
screenname=$(screen -list | grep "screen-sh-2")
if [ ! "$screenname" ]; then
exec screen -S "screen-sh-2" -c ~/.screenrc-2