feat(tmux): add tmux-new script

This commit is contained in:
Moritz Böhme 2023-10-27 09:00:02 +02:00
parent 58c8efa332
commit 02d9e30ce7
No known key found for this signature in database
GPG key ID: 970C6E89EB0547A9
3 changed files with 18 additions and 10 deletions

View file

@ -13,8 +13,4 @@ if not test -n "$selected_name"
exit 1
end
if ! tmux has-session -t $selected_name 2> /dev/null
tmux new-session -ds $selected_name -c $selected
end
tmux-switch $selected_name
tn "$selected_name" "$selected"