ao-mud is a spellbook of well-commented atomic bash scripts that each do one thing. we are building semantic building blocks for an autonomously-evolving digital spellcasting language.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
724 B

if ! command -v path-wizard > /dev/null 2>&1; then
read -p "ao-mud is not installed, install now? [y/n]: " choice
if [ "$choice" = "y" ]; then
SCRIPT_DIR=$( cd ${0%/*} && pwd -P )
$SCRIPT_DIR/spells/path-wizard add $SCRIPT_DIR/spells
$SCRIPT_DIR/spells/path-wizard add $SCRIPT_DIR/spells/cantrips
$SCRIPT_DIR/spells/path-wizard add $SCRIPT_DIR/spells/menu
$SCRIPT_DIR/spells/path-wizard add $SCRIPT_DIR/spells/menu/bitcoin
echo ""
echo "Activating your spellbook now."
exit 0
echo "Ok, well the mud won't work until you install it by adding the spells directory to your PATH."
exit 1
echo "ao-mud is already installed. Run it with 'menu' or 'mud'."