zsh: auto-rehash ZSH whenever `pacman` changes packages
zsh: auto-rehash ZSH whenever `pacman` changes packages

See: https://wiki.archlinux.org/index.php/Zsh#On-demand_rehash

```sh
sudo mkdir -p /var/cache/zsh

cat << EOF | sudo tee /etc/pacman.d/hooks/zsh.hook
[Trigger]
Operation = Install
Operation = Upgrade
Operation = Remove
Type = Package
Target = *
[Action]
Depends = zsh
When = PostTransaction
Exec = /usr/bin/env touch /var/cache/zsh/pacman
EOF
```

ben01189998819991197253/dotfiles