#!/usr/bin/env zsh# Helper to more conveniently open commonly-used SubX programs.if[$#-eq0]thenecho"Usage: $0 <file root without apps/ subdirectory or .subx extension>"exit1fiTARGET=apps/$1.mu
if[[-eapps/$1.subx&&!-eapps/$1.mu]]thenTARGET=apps/$1.subx
fiif[[$EDITOR==*'vim'*]]then$EDITOR-Svimrc.vim$TARGETelse$EDITOR$TARGETfi