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.
 
 
 
 
 

15 lines
285 B

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