[ZSH] Reload zsh on dotfiles update

This commit is contained in:
Fabian Ising
2025-12-31 13:20:09 +01:00
parent 100db79b9b
commit ca951a5a45

View File

@@ -44,10 +44,10 @@ fi
# If the dotfiles were updated, we are sourcing this file again
if [ "$DOTFILES_UPDATED" -eq 1 ]; then
echo "Reloading!" > /tmp/zsh.log
echo "Reloading ($$)!" >> /tmp/zsh.log
source ~/dotfiles/zsh/.zshrc
else
echo "Actual run!" > /tmp/zsh.log
echo "Actual run ($$)!" >> /tmp/zsh.log
# Load Antidote
mkdir -p ${ZDOTDIR:-~}/.cache/zsh
static_file=${ZDOTDIR:-~}/.cache/zsh/.zsh_plugins.zsh