Update Discworld script to not hardcode a directory name

This commit is contained in:
Brandon Cornejo 2026-02-28 18:43:05 -06:00
parent c96b5c13ca
commit 81b3f373d5

View File

@ -1,4 +1,4 @@
cd ~/documents/MUD/Discworld
cd "$(dirname '$0')"
rm logs/history.log
# No existing discworld session? Then create one
@ -30,7 +30,7 @@ if [ -n "$TMUX" ] || [ "$DISC_SESSION_CREATE" = "1" ]; then
tmux send-keys 'clear && tail -fs .5 logs/chat.log' 'C-m'
# Did we ask for the full layout?
if [[ $1 == "full" || $1 != "full" ]]; then
if [[ $1 == "full" ]]; then
# Horizontal split and load spottimers
echo "Making death timer window"
tmux select-pane -t discworld:0.1