auto-terminal-profile icon indicating copy to clipboard operation
auto-terminal-profile copied to clipboard

🧑‍💻 Automatic dark / light mode for macOS Terminal

auto-terminal-profile

Automatically switch the macOS Terminal profile based on the system-wide dark / light appearance mode

auto-terminal-profile demonstration screen recording

Prerequisites

Installation

npm install --global auto-terminal-profile

Usage

auto-terminal-profile --help
Usage: auto-terminal-profile [options] [command]

Automatically switch the macOS Terminal profile based on the system-wide dark / light appearance mode

Options:
  -V, --version                output the version number
  -h, --help                   display help for command

Commands:
  disable                      Disable automatic macOS Terminal profile switching based on system dark / light mode
  enable [options]             Enable automatic macOS Terminal profile switching based on system dark / light mode
  set-dark-profile <profile>   Set the Terminal profile to use in dark mode
  set-light-profile <profile>  Set the Terminal profile to use in light mode
  status                       Show status and configuration
  update-profile               Update the profile of currently running Terminal windows / tabs
  help [command]               display help for command

Acknowledgements

Thanks to Fatih Arslan for his article Automatic dark mode for terminal applications and Bouke van der Bijl for his project dark-mode-notify, which this project uses