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.

26 lines
541B

  1. #!/usr/bin/env zsh
  2. echo "=> Get latest version of dotfiles"
  3. stderr="/tmp/stderr"
  4. git pull --quiet origin master 2>$stderr
  5. if [ -s "${stderr}" ]; then
  6. echo "Opps, an error occured:\n"
  7. cat ${stderr}
  8. rm -f ${stderr}
  9. exit 1
  10. fi
  11. echo "\n===========================================\n"
  12. echo "=> Copy dotfiles into my home-directory"
  13. cp -fRX ./dotfiles/ ~
  14. echo "\n===========================================\n"
  15. echo "=> Reload current session-config"
  16. source ~/.zshrc
  17. echo "\n===========================================\n"
  18. echo "=> ready!"