update_antibody.sh 516 B

12345678910111213141516171819202122
  1. #!/usr/bin/env zsh
  2. echo "Updating antibody cache"
  3. currpath=$(realpath $PWD)
  4. if [ ! -d ${currpath}/compiled ]; then
  5. mkdir compiled
  6. fi
  7. antibody_bin=$(which antibody)
  8. if [ "z${antibody_bin}" = "z" ]; then
  9. echo "Error: you need to install antibody first!"
  10. exit 1
  11. fi
  12. ${antibody_bin} bundle < ${currpath}/antibody.plugins.txt > ${currpath}/compiled/antibody.zsh
  13. if [ ! -d ~/.config/zsh ]; then
  14. mkdir -p ~/.config/zsh
  15. fi
  16. cp ${currpath}/compiled/antibody.zsh ~/.config/zsh/
  17. # vim: set ft=sh et sw=0 ts=2 sts=0: