2024-05-23 19:39:21 +03:00

12 lines
291 B
Bash
Executable File

#!/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"
tmux splitw -t "$SESSION:$MAINW" -d -b -h -l "$_tmux_new_pane_size" -c '#{pane_current_path}'