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

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

	exec \tmux attach-session -d
fi

exec \tmux $@