From 004b85ef03ae1c5ad78c206f1df54861e13b82e2 Mon Sep 17 00:00:00 2001 From: thek4n Date: Thu, 4 Apr 2024 14:38:42 +0300 Subject: [PATCH] feat(tmux): temp session --- .gitignore | 3 ++- home/user/.tmux/10.sh | 11 +++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100755 home/user/.tmux/10.sh 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