From dce349f52c40a16c78ca68e300278605998d5d32 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Thu, 28 May 2020 10:07:59 -0700 Subject: 6416 --- edit | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'edit') diff --git a/edit b/edit index aa9ccff7..57c665c9 100755 --- a/edit +++ b/edit @@ -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 -- cgit 1.4.1-2-gfad0