- #!/usr/bin/env bash
- if ! tmux has-session -t "music" ; then
- echo "Creating tmux session for music"
- echo $MPD_HOST
- cd ~/Music
- tmux new-session -e MPD_HOST=$MPD_HOST -s "music" "$SHELL -c ncmpc" \; \
- split-window "$SHELL"
- else
- tmux attach-session -t "music"
- fi
|