Don't start screen when running in mosh

This commit is contained in:
2016-04-28 11:13:51 +02:00
parent 3477c42e10
commit b2f83b4c0f

View File

@@ -283,7 +283,9 @@ case $- in
bind 'TAB:menu-complete'
# only with interactive non-sudo shell
if [ -n "$SSH_CONNECTION" ] && [ -z "$SUDO_UID" ]; then
[ "$(parent)" = "screen" ] || screen -RR
[ "$(parent)" = "screen" ] ||
[ "$(parent)" = "mosh-server" ] ||
screen -RR
fi
;;
esac