···3636auto-terminal-profile update-profile
3737```
38383939-To sync the Terminal profile to the current macOS appearance mode when Terminal app is opened, you can add that line to your shell startup script (e.g. `.zshrc`), but it will increase the startup time of new shell sessions.
3939+To sync the Terminal profile to the current macOS appearance mode when Terminal app is opened, you can add that line to your shell startup script (e.g. `.zshrc`), but it will increase the startup time of new shell sessions:
4040+4141+```zsh
4242+if [ "$TERM_PROGRAM" = "Apple_Terminal" ]; then
4343+ auto-terminal-profile update-profile
4444+fi
4545+```
40464147### Disable automatic profile switching
4248