6711
This commit is contained in:
parent
ab445d6e75
commit
2ab2af0c05
21
edit
21
edit
|
@ -1,21 +0,0 @@
|
|||
#!/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
|
Loading…
Reference in New Issue