This commit is contained in:
Kartik Agaram 2020-05-28 10:07:59 -07:00
parent dd6e4bc789
commit dce349f52c
1 changed files with 8 additions and 2 deletions

10
edit
View File

@ -7,9 +7,15 @@ then
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 apps/$1.subx
$EDITOR -S vimrc.vim $TARGET
else
$EDITOR apps/$1.subx
$EDITOR $TARGET
fi