14 lines
285 B
Bash
Executable file
14 lines
285 B
Bash
Executable file
#!/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[@]}
|