Automatic zshrc reloading after update
This commit is contained in:
parent
06cddc0b87
commit
42d55f9d6c
1 changed files with 2 additions and 1 deletions
3
zshrc
3
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue