about summary refs log blame commit diff stats
path: root/subx/edit
blob: c33ee46b3a5b79bfd630fe3ab387ba242aa3b353 (plain) (tree)
1
2
3
4
5
6
7
8
9




                          
                    


        


                                
         


                      
#!/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