summaryrefslogtreecommitdiffstats
path: root/bashrc/bin/t
blob: 019eda94d00acf5f4f5f719b84c7bbccdca847cb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env bash

if [[ "x$1" == x ]] ; then
	\tmux list-sessions ||
	{
		\tmux new-session -d
	}

	exec \tmux attach-session -d
fi

exec \tmux $@