about summary refs log tree commit diff stats
path: root/subx/edit
blob: c33ee46b3a5b79bfd630fe3ab387ba242aa3b353 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env zsh
# Open a specific example.

if [ $# -eq 0 ]
then
  echo "edit <file>"
  exit 1
fi

if [[ $1 == 'test'* ]]
then
  eval $EDITOR ./teensy/$1*.[cs]
  exit $?
fi

eval $EDITOR ./$1.subx