tmux sesions

This commit is contained in:
thek4n 2024-09-26 15:38:16 +03:00
parent a7cbd1112e
commit 62dd4101e4

View File

@ -7,7 +7,10 @@ MAINW=1
WORKING_PROJECT="$(mktemp -d)"
tmux new-session -s "$SESSION" -d -n "$MAINW" -c "$WORKING_PROJECT"
tmux switch-client -t "$SESSION"
tmux new-session -s "$SESSION" -d -n "$MAINW"
tmux splitw -t "$SESSION:$MAINW" -d -b -h -l "$_tmux_other_pane_size" -c '#{pane_current_path}'
tmux send-keys -t "$SESSION:$MAINW.1" 'git clone .' Left Left
tmux new-window -d -n "2" -t "$SESSION:2" -c "$WORKING_PROJECT"
tmux splitw -t "$SESSION:2" -d -b -h -l "$_tmux_other_pane_size" -c "$WORKING_PROJECT"
tmux send-keys -t "$SESSION:2.1" 'git clone .' Left Left
tmux switch-client -t "$SESSION"