X-Git-Url: https://arthur.barton.de/gitweb/?p=ConfigScripts.git;a=blobdiff_plain;f=sys%2Fprofile;fp=sys%2Fprofile;h=207bf5baf2134451e606fec6158fa0e02b60b2a8;hp=0e69c899f74138f13e080bbd8b44eba7ac4ac64f;hb=1615d7044ddd5c65ca212f1a073f91efc418bc89;hpb=a0b31bc0283071b3bce0ff1469822575608742ec diff --git a/sys/profile b/sys/profile index 0e69c89..207bf5b 100644 --- a/sys/profile +++ b/sys/profile @@ -153,7 +153,10 @@ fi [ -r "/var/lib/${HOSTNAME}/profile" ] && . /var/lib/${HOSTNAME}/profile # interactive shell? -[ "$PS1" ] || return +case "$-" in + *i*) ;; + *) return ;; +esac # validate terminal definition type -t tset >/dev/null && eval `tset -s -Q`