Update awesome config if needed

This commit is contained in:
Thomas Forgione 2018-11-28 14:54:29 +01:00
parent d8245151db
commit 7a9474a413
No known key found for this signature in database
GPG Key ID: 203DAEA747F48F41
1 changed files with 10 additions and 2 deletions

View File

@ -1,9 +1,17 @@
pull-dotfiles() {
current_dir=$PWD
echo "\033[32;1m=== Updating dotfiles ===\033[0m"
cd ~/.config/dotfiles && git pull
echo "\033[32;1m=== Updating oh-my-zsh ===\033[0m"
cd ~/.config/oh-my-zsh && git pull
echo "\033[32;1m=== Updating dotfiles ===\033[0m"
cd ~/.config/dotfiles && git pull
if [ -d ~/.config/awesome/.git ]; then
echo "\033[32;1m=== Updating awesome config ===\033[0m"
cd ~/.config/awesome/ && git pull
fi
cd $current_dir
}