diff options
Diffstat (limited to 'subx/edit')
-rwxr-xr-x | subx/edit | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/subx/edit b/subx/edit new file mode 100755 index 00000000..03a2c284 --- /dev/null +++ b/subx/edit @@ -0,0 +1,15 @@ +#!/usr/bin/env zsh +# Open a specific example. + +if [ $# -eq 0 ] +then + echo "edit <file>" + exit 1 +fi + +if [[ $1 == 'ex'* ]] +then + eval $EDITOR examples/$1.subx +else + eval $EDITOR apps/$1.subx +fi |