2024-08-31 16:04:57 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
2024-10-09 21:32:06 +02:00
|
|
|
if tmux has-session -t cmus 2>/dev/null; then
|
|
|
|
alacritty -e tmux attach-session -t cmus
|
2024-08-31 16:04:57 +02:00
|
|
|
else
|
2024-10-09 21:32:06 +02:00
|
|
|
tmux new-session -d -s cmus cmus
|
|
|
|
alacritty -e tmux attach-session -t cmus
|
2024-08-31 16:04:57 +02:00
|
|
|
fi
|