summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
c5d595d)
Avoid starting `screen` when running under `ssh -t remote_host command`.
+# If not running interactively, don't do anything
+case $- in
+ *i*) ;;
+ *) return ;;
+esac
+
+# Stop if non-interactive shell
+[ -z "$PS1" ] && return
+
if [ -n "$SSH_CONNECTION" -a -z "$STY" -a -t 0 ] &&
which screen >/dev/null 2>&1
then
if [ -n "$SSH_CONNECTION" -a -z "$STY" -a -t 0 ] &&
which screen >/dev/null 2>&1
then