install.fairie/.local/share/chezmoi/home/.chezmoiscripts/universal/run_onchange_after_99_bootstrap-zsh-plugins.tmpl

14 lines
398 B
Bash

#!/usr/bin/env bash
{{- if eq .host.headless true }}
# .zshrc hash: {{ include (joinPath .chezmoi.homeDir ".zshrc")| sha256sum }}
{{- includeTemplate "universal/profile" }}
{{- includeTemplate "universal/logg" }}
### Initialize ZSH so plugin bootstrap process is done ahead of time
if command -v zsh > /dev/null; then
logg 'Bootstrapping ZSH plugin system'
exec zsh && exit 0
fi
{{- end -}}