summaryrefslogtreecommitdiffstats
path: root/.zprofile
diff options
context:
space:
mode:
Diffstat (limited to '.zprofile')
-rw-r--r--.zprofile2
1 files changed, 1 insertions, 1 deletions
diff --git a/.zprofile b/.zprofile
index e47e9ad..7738012 100644
--- a/.zprofile
+++ b/.zprofile
@@ -1,4 +1,4 @@
-if [[ -z $DISPLAY ]] && type screen &>/dev/null && [[ -e ~/.screenrc-2 ]]; then
+if tty -s && [[ -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