random script dump
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

14 lines
285 B

#!/usr/bin/zsh
INDEX="$HOME/vimwiki/index.md"
VIMOPTS=(
'-c' 'set titlestring=vimwiki'
'-c' 'VimwikiIndex'
)
case $1 in
-g) vimbin=$(command -v gvim);;
-n) vimbin=$(command -v vim);;
*) vimbin=$(command -v tvim);;
esac
exec flock -w0 $INDEX $vimbin ${VIMOPTS[@]}