Skip to content

Commit 22a6c20

Browse files
committed
smart-tmux: new, for buildbot go to your name workspace
1 parent 2ff5601 commit 22a6c20

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

st.sh

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
3+
if [[ $# != 1 ]]; then
4+
echo "Usage: st [NAME]"
5+
exit 1
6+
fi
7+
8+
tmux a -t $1
9+
10+
if [ $? = 1 ]; then
11+
tmux new -s $1
12+
fi

0 commit comments

Comments
 (0)