diff options
Diffstat (limited to 'subx/g')
-rwxr-xr-x | subx/g | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/subx/g b/subx/g new file mode 100755 index 00000000..dc57cceb --- /dev/null +++ b/subx/g @@ -0,0 +1,14 @@ +#!/usr/bin/env zsh +# Run git commands on a specific example's source. + +if [ $# -eq 0 ] +then + echo "g <git command> <args> <suffix>" + exit 1 +fi + +arg=( $* ) +suffix=$arg[${#arg[@]}] +unset "arg[${#arg[@]}]" + +git ${arg[@]} ./teensy/test$suffix*.[cs] |