[tmux] fix: tsession script
This commit is contained in:
parent
2b4541d537
commit
0f6b2f0af0
@ -4,6 +4,6 @@ session="$1"
|
|||||||
cmd="$2"
|
cmd="$2"
|
||||||
|
|
||||||
tmux new -s $session -d
|
tmux new -s $session -d
|
||||||
tmux send-keys -t $session "exec $cmd" C-m
|
tmux send-keys -t $session "$cmd && exit" C-m
|
||||||
tmux attach -t $session
|
tmux attach -t $session
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user