diff --git a/home/.chezmoiscripts/universal/run_onchange_after_3-system-bin.tmpl b/home/.chezmoiscripts/universal/run_onchange_after_3-system-bin.tmpl new file mode 100644 index 00000000..43bb3d9b --- /dev/null +++ b/home/.chezmoiscripts/universal/run_onchange_after_3-system-bin.tmpl @@ -0,0 +1,10 @@ +{{- if (eq .host.distro.family "linux") -}} +#!/usr/bin/env bash + +### Copy ~/.local/bin/squash-symlink to /usr/local/bin/squash-symlink +if [ ! -f /usr/local/bin/squash-symlink ] && [ -f "$HOME/.local/bin/squash-symlink" ]; then + logg info 'Copying ~/.local/bin/squash-symlink to /usr/local/bin/squash-symlink' + sudo cp -f "$HOME/.local/bin/squash-symlink" /usr/local/bin/squash-symlink +fi + +{{ end -}}