In the home/.chezmoi.yaml.tmpl file, one of the questions that is prompted asks if the computer is a "Managed" computer or a WORK_ENVIRONMENT. We can automate this question on macOS by running the following:
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --getglobalstate
Firewall settings cannot be modified from command line on managed Mac computers.
If the response of the command contains the string, then the WORK_ENVIRONMENT should be set to true without prompting the user.
💡 Feature/Idea
In the
home/.chezmoi.yaml.tmpl
file, one of the questions that is prompted asks if the computer is a "Managed" computer or aWORK_ENVIRONMENT
. We can automate this question on macOS by running the following:If the response of the command contains the string, then the
WORK_ENVIRONMENT
should be set to true without prompting the user.:thumbsup: Can you contribute?
No response