dotfiles/tools/upgrade.sh
2022-07-04 16:06:23 +03:00

16 lines
No EOL
371 B
Bash

#!/bin/sh
# Dotfiles upgrade script that just pulls new dotfiles from repo
# oh-my-zsh update included!
CURRENTDIR="$(pwd)"
GREEN="\033[32m"
DEFAULTC="\033[0m"
cd $HOME/.dotfiles
echo "${GREEN}Upgrading dotfiles$DEFAULTC"
git pull
sh tools/relink.sh
echo "${GREEN}Upgrading oh-my-zsh$DEFAULTC"
zsh -c "source $ZSH/oh-my-zsh.sh && omz update" > /dev/null
cd $CURRENTDIR