blob: 3d364fa9e6509e458c3f8e3f36894d2742dbda77 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/usr/bin/env sh
t="tmux -2 -f ${HOME}/.config/tmux/conf -u"
if [ -z "$1" ]
then
session=$(hostname -s)
else
session=$(hostname -s)/$1
fi
${t} attach -t "${session}" || ${t} new-session -s "${session}"
|