summaryrefslogtreecommitdiffstats
path: root/.zprofile
blob: fa8160b0a7d8d7fb65d3ffb28b788c51f89b9cfd (plain)
1
2
3
4
5
6
7
8
if type screen &>/dev/null && [[ -e ~/.screenrc-2 ]]; then
	screenname=$(screen -list | grep "screen-sh-2")
	if [ ! "$screenname" ]; then
		exec screen -S "screen-sh-2" -c ~/.screenrc-2
	elif echo $screenname | grep -q "Detached"; then
	  exec screen -r screen-sh-2
	fi
fi