random scripts I use
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.

46 lines
649B

  1. #!/usr/bin/env fish
  2. function pull-vim-plugin -d 'Updates all vim plugins in the current directory'
  3. cd $argv[1]
  4. for plugin in ./*
  5. cd $plugin
  6. echo "Updating $plugin"
  7. git stash
  8. git pull -f
  9. set res $status
  10. if test $res != 0; and test $res != 128
  11. echo "error $res in $PWD"
  12. exit 1
  13. end
  14. if test -d doc
  15. echo "generating tags for $PWD"
  16. vim --cmd "helptags doc/" --cmd "q"
  17. end
  18. cd ..
  19. end
  20. cd ..
  21. end
  22. function update-vim-plugins -d 'Updates all vim plugins'
  23. cd ~/.vim/pack
  24. for folder in ./*
  25. cd $folder
  26. test -d start; and pull-vim-plugin start
  27. test -d opt; and pull-vim-plugin opt
  28. cd ..
  29. end
  30. end
  31. ## EOF