install.fairie/home/.chezmoiscripts/universal/run_onchange_after_95-bootstrap-zsh-plugins.sh.tmpl
Brian Zalewski 5f30821078 Update 12 files
- /home/dot_config/rclone/system/s3-system.service.tmpl
- /home/dot_config/rclone/private_docker-rclone.conf.tmpl
- /home/.chezmoidata.yaml
- /home/.chezmoiscripts/universal/run_onchange_after_95-bootstrap-zsh-plugins.sh.tmpl
- /home/.chezmoiscripts/universal/run_onchange_after_51-samba.sh.tmpl
- /home/dot_local/bin/executable_rclone-mount
- /home/dot_config/rclone/system/s3-public.service.tmpl
- /home/dot_config/rclone/system/s3-private.service.tmpl
- /home/dot_config/rclone/private_system-rclone.conf.tmpl
- /home/dot_config/rclone/merge_private_rclone.conf.tmpl
- /home/dot_config/rclone/s3-user.service.tmpl
- /scripts/src/provision.sh.tmpl
2023-04-19 05:15:21 +00:00

20 lines
855 B
Cheetah

{{- if (eq .host.headless true) }}
#!/usr/bin/env bash
# @file ZSH Pre-Initialization
# @brief Ensures ZSH is pre-initialized by invoking ZSH and allowing it to perform "first-run" tasks
# @description
# This script ensures that the first time you open a ZSH terminal session everything is loaded as fast as possible.
# It does this by invoking ZSH in the background during the provisioning process so that "first-run" tasks such
# as cache-building are handled ahead of time.
# .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 info 'Bootstrapping ZSH by running `exec zsh && exit 0`'
exec zsh && exit 0
fi
{{ end -}}