summaryrefslogblamecommitdiffstats
path: root/bashrc/bin/t
blob: 39ba79c930f3d38d0e67bff658258b9fe6ff3020 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
                   










                                          
#!/usr/bin/env bash

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

	exec \tmux attach-session -d
fi

exec \tmux $@