]> git.wh0rd.org Git - home.git/commitdiff
also test for -i
authorMike Frysinger <vapier@gentoo.org>
Fri, 30 Jan 2009 21:43:38 +0000 (16:43 -0500)
committerMike Frysinger <vapier@gentoo.org>
Sat, 28 Apr 2012 19:36:06 +0000 (15:36 -0400)
.profile.d/screen.sh

index a8f6fa0b013ed3be76bee43a574f1bd3c9ddd0a1..31a2f6bdb0482b12fce9efa8ef6689b3c9534997 100644 (file)
@@ -1 +1,3 @@
-[ "${TERM}" != "dumb" ] && screen -li
+if [[ $- == *i* ]] ; then
+       [ "${TERM}" != "dumb" ] && screen -li
+fi