diff --git a/.gitignore b/.gitignore index a470196..4d8f375 100644 --- a/.gitignore +++ b/.gitignore @@ -26,4 +26,5 @@ home/user/.termux/shell home/user/.config/tmux/plugins home/user/.tmux/* -!home/user/.tmux/01.sh \ No newline at end of file +!home/user/.tmux/01.sh +!home/user/.tmux/10.sh \ No newline at end of file diff --git a/home/user/.tmux/10.sh b/home/user/.tmux/10.sh new file mode 100755 index 0000000..9fa7c32 --- /dev/null +++ b/home/user/.tmux/10.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +set -x + +SESSION="sandbox${RANDOM}" +MAINW=1 + +WORKING_PROJECT="$(mktemp -d)" + +tmux new-session -s "$SESSION" -d -n "$MAINW" -c "$WORKING_PROJECT" +tmux switch-client -t "$SESSION" \ No newline at end of file