cd ~/documents/MUD/Discworld if [[ ! $(tmux ls -F '#S') =~ discworld ]]; then rm logs/minimap.log && touch logs/minimap.log rm logs/mapdoortext.log && touch logs/mapdoortext.log rm logs/chat.log && touch logs/chat.log tmux new-session -d -A -D -s discworld 'tail -fs .5 logs/chat.log' tmux select-window -t discworld:0 tmux split-window -v -p 85 'sh mdt' tmux split-window -v -p 85 'bash' tmux send-keys 'tt++ -G config.tin' 'C-m' # clear && watch -n10 logs/xptimers.log fi tmux -2 attach-session -t discworld -d