update_antibody.sh 485 B

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