about summary refs log tree commit diff stats
path: root/edit
blob: aa9ccff7ed2b46c33582f73acb6390f306ea450e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/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

if [[ $EDITOR == *'vim'* ]]
then
  $EDITOR -S vimrc.vim apps/$1.subx
else
  $EDITOR              apps/$1.subx
fi