about summary refs log tree commit diff stats
path: root/112read-byte.subx
Commit message (Expand)AuthorAgeFilesLines
* 7842 - new directory organizationKartik K. Agaram2021-03-031-302/+7
* 6908 - compiling all floating-point operationsKartik Agaram2020-09-301-2/+50
* 6751Kartik Agaram2020-09-071-1/+1
* 6733 - read utf-8 'grapheme' from byte streamKartik Agaram2020-08-281-1/+45
* 6632Kartik Agaram2020-07-111-1/+1
* 6612 - reorganize layersKartik Agaram2020-07-051-0/+326
ubx/edit?h=main&id=694d8485d49ecb4fb35c8cf0dacd59f960d2999e'>694d8485 ^
af21f7d1 ^

694d8485 ^
af21f7d1 ^
694d8485 ^
af21f7d1 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
                  
                                                               


               



                                                                                         


        




                               

                    
                                               
    
                                           
  
#!/usr/bin/env zsh
# Helper to more conveniently open commonly-used SubX programs.

if [ $# -eq 0 ]
then
  echo "Usage: $0 <file root without subdirectory or .subx extension>"
  echo
  echo "Naming convention: Files starting with 'ex' will be assumed to live in examples/"
  echo "Other files will be assumed to live in apps/"
  exit 1
fi

if [[ $EDITOR == *'vim'* ]]
then
  LOCAL_SETTINGS='-S vimrc.vim'
fi

if [[ $1 == 'ex'* ]]
then
  eval $EDITOR $LOCAL_SETTINGS examples/$1.subx
else
  eval $EDITOR $LOCAL_SETTINGS apps/$1.subx
fi