if shopt -q login_shell; then
	if [ $TERM != "screen" ]; then
		( (tmux has-session -t remote && tmux attach-session -t remote) || (tmux new-session -s remote) ) && exit 0
		echo "tmux failed to start"
	fi
fi
