about summary refs log tree commit diff stats
path: root/subx
ModeNameSize
-rw-r--r--000organization.cc5847log stats plain blame
-rw-r--r--001help.cc8755log stats plain blame
-rw-r--r--002test.cc3397log stats plain blame
-rw-r--r--003trace.cc14635log stats plain blame
-rw-r--r--003trace.test.cc3817log stats plain blame
-rw-r--r--Readme.md57log stats plain blame
-rwxr-xr-xbuild2965log stats plain blame
-rwxr-xr-xclean218log stats plain blame
8 9
10
11
12
13
14
15
16
17
18
19
20
21
                  
                                                               


               
                                                                            


        





                                             

                           
                              
    
                              
  
#!/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