diff options
| author | Loek Le Blansch <loek@pipeframe.xyz> | 2026-08-02 19:04:18 +0200 |
|---|---|---|
| committer | Loek Le Blansch <loek@pipeframe.xyz> | 2026-08-02 19:04:18 +0200 |
| commit | d85d3cde2a62b36ad943a231b244c22a81159680 (patch) | |
| tree | 31c836a58ba3b0754d35f83163d8ad00a2743f67 /home/dot_local | |
| parent | ad9cfdc586ee37b4c534d173697b4404d6f51324 (diff) | |
add bootstrap scripts
Diffstat (limited to 'home/dot_local')
| -rw-r--r-- | home/dot_local/share/mode/run_once_bootstrap.sh.tmpl | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/home/dot_local/share/mode/run_once_bootstrap.sh.tmpl b/home/dot_local/share/mode/run_once_bootstrap.sh.tmpl new file mode 100644 index 0000000..6b5f54d --- /dev/null +++ b/home/dot_local/share/mode/run_once_bootstrap.sh.tmpl @@ -0,0 +1,13 @@ +#!/bin/sh +# vim:ft=sh + +# save hash of this directory so this script is run if the files are modified +# {{ output "find" (joinPath .chezmoi.sourceDir "dot_local/share/mode") "-type" "f" "-exec" "sha256sum" "{}" ";" | sha1sum }} + +[ -z "$(command -v mode)" ] && exit 0 +[ -z "$(command -v fork)" ] && exit 0 + +echo "updating dynamic theme files" +fork mode --no-reload {{ dig "mode" "theme" "dark" . }} + +exit 0 |