···7788## [Unreleased](https://github.com/patrik-csak/terminal-profile/compare/v3.0.2...HEAD)
991010+### Added
1111+1212+- Documentation explaining how to automatically update Terminal profile when opening Terminal
1313+1014### Changed
11151216- **BREAKING**: `update-profile` gets appearance mode from OS instead of from `DARKMODE` environment variable
+26-10
readme.md
···11-# `auto-terminal-profile`
11+# Auto Terminal Profile
2233-Automatically switch the macOS Terminal profile based on the system-wide dark / light appearance mode
33+Automatically switch [macOS Terminal](https://en.wikipedia.org/wiki/Terminal_%28macOS%29) profiles when the [dark / light appearance mode](https://support.apple.com/guide/mac-help/use-a-light-or-dark-appearance-mchl52e1c2d2/mac) changes
4455
6677## Prerequisites
8899-- [Node.js](https://nodejs.org/en/) 18–20
99+- [Node.js](https://nodejs.org/) 18–20
10101111## Installation
12121313-```sh
1313+```shell
1414npm install --global auto-terminal-profile
1515```
16161717## Usage
18181919+### Enable automatic profile switching
2020+1921To get started, enable automatic profile switching and set your preferred dark and light mode profiles:
20222121-```sh
2323+```shell
2224auto-terminal-profile enable \
2325 --dark-profile='One Dark' \
2426 --light-profile='One Light'
2527```
26282727-For more information view the help output:
2929+### Switch profile on Terminal startup
3030+3131+Auto Terminal Profile only runs if Terminal is running, so the profile can fall out of sync if the macOS appearance mode changes while Terminal isn’t running.
28322929-```sh
3030-auto-terminal-profile --help
3333+To sync the Terminal profile to the current macOS appearance mode once:
3434+3535+```shell
3636+auto-terminal-profile update-profile
3137```
32383333-## Acknowledgements
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.
34403535-Thanks [Bouke van der Bijl](https://bou.ke) for his project [dark-mode-notify](https://github.com/bouk/dark-mode-notify), which this project depends on
4141+### Disable automatic profile switching
4242+4343+```shell
4444+auto-terminal-profile disable
4545+```
4646+4747+### Help
4848+4949+```shell
5050+auto-terminal-profile --help
5151+```