#!/usr/bin/env zsh# Open commonly-used SubX programs.if[$#-eq0]thenecho"edit <file>"exit1fiif[[$EDITOR==*'vim'*]]thenLOCAL_SETTINGS='-S vimrc.vim'fiif[[$1=='ex'*]]theneval$EDITOR$LOCAL_SETTINGSexamples/$1.subx
elseeval$EDITOR$LOCAL_SETTINGSapps/$1.subx
fi