diff --git a/.local/share/chezmoi/home/.chezmoiscripts/darwin/run_onchange_after_10_configure-macos.tmpl b/.local/share/chezmoi/home/.chezmoiscripts/darwin/run_onchange_after_10_configure-macos.tmpl index dcd17a52..9952f1d6 100644 --- a/.local/share/chezmoi/home/.chezmoiscripts/darwin/run_onchange_after_10_configure-macos.tmpl +++ b/.local/share/chezmoi/home/.chezmoiscripts/darwin/run_onchange_after_10_configure-macos.tmpl @@ -1,12 +1,12 @@ #!/usr/bin/env bash -set -x - {{ includeTemplate "universal/profile" }} {{ includeTemplate "universal/logg" }} logg 'Applying optimized macOS settings' +set -x + # Close any open System Preferences panes, to prevent them from overriding # settings we’re about to change osascript -e 'tell application "System Preferences" to quit' @@ -937,5 +937,7 @@ for app in "Activity Monitor" \ killall "${app}" &> /dev/null done +set +x + logg 'Done applying macOS settings' logg info 'Some of these changes may require a logout/restart to take effect'