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.

vimwiki 326B

12345678910111213
  1. #!/usr/bin/bash
  2. index="$HOME/vimwiki/index.wiki"
  3. typeset -a vimopts=(
  4. '-c' 'set titlestring=vimwiki'
  5. '-c' 'packadd vimwiki'
  6. '-c' "e $index"
  7. )
  8. case $1 in
  9. -g) vimbin=$(command -v gvim);;
  10. -n) vimbin=$(command -v vim);;
  11. *) vimbin=$(command -v tvim);;
  12. esac
  13. exec flock -w0 "$index" "$vimbin" "${vimopts[@]}"