[ZSH] Reload zsh on dotfiles update

This commit is contained in:
Fabian Ising
2025-12-31 13:24:17 +01:00
parent 78a59c3478
commit d59510769a

View File

@@ -29,6 +29,7 @@ update_dotfiles() {
cd ~/dotfiles || return
if git fetch --dry-run 2>&1 | grep -q .; then
git pull > /dev/null 2>&1
echo "Updating ($$)" >> /tmp/zsh.log
DOTFILES_UPDATED=1
fi
}
@@ -42,7 +43,7 @@ if [ "$shared_config" -eq 0 ]; then
fi
# If the dotfiles were updated, we are sourcing this file again
if [ "$DOTFILES_UPDATED" -eq "1" ]; then
if [ "$DOTFILES_UPDATED" -eq 1 ]; then
echo "Reloading ($$)!" >> /tmp/zsh.log
source ~/dotfiles/zsh/.zshrc
else