This commit is contained in:
Kartik Agaram 2020-08-02 21:01:48 -07:00
parent ab445d6e75
commit 2ab2af0c05
1 changed files with 0 additions and 21 deletions

21
edit
View File

@ -1,21 +0,0 @@
#!/usr/bin/env zsh
# Helper to more conveniently open commonly-used SubX programs.
if [ $# -eq 0 ]
then
echo "Usage: $0 <file root without apps/ subdirectory or .subx extension>"
exit 1
fi
TARGET=apps/$1.mu
if [[ -e apps/$1.subx && ! -e apps/$1.mu ]]
then
TARGET=apps/$1.subx
fi
if [[ $EDITOR == *'vim'* ]]
then
$EDITOR -S vimrc.vim $TARGET
else
$EDITOR $TARGET
fi