feat(tmux): temp session
This commit is contained in:
parent
7d8e1c3e22
commit
004b85ef03
3
.gitignore
vendored
3
.gitignore
vendored
@ -26,4 +26,5 @@ home/user/.termux/shell
|
|||||||
|
|
||||||
home/user/.config/tmux/plugins
|
home/user/.config/tmux/plugins
|
||||||
home/user/.tmux/*
|
home/user/.tmux/*
|
||||||
!home/user/.tmux/01.sh
|
!home/user/.tmux/01.sh
|
||||||
|
!home/user/.tmux/10.sh
|
||||||
11
home/user/.tmux/10.sh
Executable file
11
home/user/.tmux/10.sh
Executable 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"
|
||||||
Loading…
x
Reference in New Issue
Block a user