From 42d55f9d6cf77d7b6b7d56bc2e9841077e37152d Mon Sep 17 00:00:00 2001 From: lhark Date: Mon, 7 Dec 2015 18:00:33 +0100 Subject: [PATCH] Automatic zshrc reloading after update --- zshrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zshrc b/zshrc index 50d852b..bd9a926 100644 --- a/zshrc +++ b/zshrc @@ -37,7 +37,8 @@ elif $(echo "$git_st" | grep '^## .*behind' &> /dev/null); then echo "Type Y to update .zshrc: \c" read line if [ "$line" = Y ] || [ "$line" = y ]; then - git pull --rebase --stat origin master + git pull --rebase --stat origin master && source $HOME/.zshrc + exit 0 fi fi