feat(tmux): temp session

This commit is contained in:
thek4n 2024-04-04 14:38:42 +03:00
parent 7d8e1c3e22
commit 004b85ef03
2 changed files with 13 additions and 1 deletions

1
.gitignore vendored
View File

@ -27,3 +27,4 @@ home/user/.termux/shell
home/user/.config/tmux/plugins
home/user/.tmux/*
!home/user/.tmux/01.sh
!home/user/.tmux/10.sh

11
home/user/.tmux/10.sh Executable file
View File

@ -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"