#!/usr/bin/env zsh # Open a specific example. if [ $# -eq 0 ] then echo "edit " exit 1 fi if [[ $1 == 'ex'* ]] then eval $EDITOR examples/$1.subx else eval $EDITOR apps/$1.subx fi