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.
 
 
 
 
 
 

25 lines
541 B

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