quest-run 250 B

12345678910
  1. #!/bin/sh
  2. QUESTS=`ls -1 --color=no $HOME/.quests`
  3. TARGET=`ls -1 --color=no $HOME/.quests | tr '_' ' ' | dmenu -l 10 -p "Start Quest: " | tr ' ' '_'`
  4. QUEST_DIR="$HOME/.quests/$TARGET"
  5. [ -n "$TARGET" ] && QUEST_DIR="$QUEST_DIR" exec $QUEST_DIR/env