From 7a9474a413e4e57b9b522acd8375f531198d755f Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Wed, 28 Nov 2018 14:54:29 +0100 Subject: [PATCH] Update awesome config if needed --- zsh/update.zsh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/zsh/update.zsh b/zsh/update.zsh index 2da7f3b..5ac91d3 100644 --- a/zsh/update.zsh +++ b/zsh/update.zsh @@ -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 }