about summary refs log blame commit diff stats
path: root/subx/edit
blob: 03a2c284012ba9c876939792b9e8c6293ce28916 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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