Expand description
iTerm2 configuration instruction generator.
Most iTerm2 settings live in plist files, which are complex to modify programmatically, so this module generates manual setup instructions for them. The tab icon is the exception: iTerm2 loads Dynamic Profiles from plain JSON files with no restart, so the icon profile below is fully installable from code.
Structs§
- Profile
Icon Install Report - Outcome of
install_profile_icon.
Enums§
- Terminal
Icon Command - Parsed
/terminal-setup iconsubcommand.
Constants§
- PROFILE_
GUID - Stable identity of the shipped iTerm2 profile so reinstalls overwrite instead of duplicating it.
- PROFILE_
ICON_ FILENAME - Filename of the installed profile artwork under the data root.
Functions§
- artwork_
bytes - Artwork bytes for a concrete icon variant.
- default_
install_ paths - Resolve default install locations: home directory and canonical data root.
- dynamic_
profile_ json - Render the dynamic-profile JSON pointing at an absolute icon path.
- ensure_
profile_ icon - Ensure the iTerm2 profile icon is installed, returning the install report when this call wrote files.
- ensure_
profile_ icon_ at - Testable core of
ensure_profile_iconwith explicit paths, environment flags, and resolved artwork preference (no process-environment reads, no global roots, no theme-global reads). - generate_
config - Generate iTerm2 setup instructions (manual configuration required)
- install_
profile_ icon - Install the VT Code iTerm2 profile icon (macOS only, idempotent).
- installed_
icon_ path - Absolute destination of the installed icon under a data root.
- parse_
terminal_ icon_ command - Parse
icon [variant]args (case- and whitespace-tolerant). ReturnsNonefor anything that is not an icon command, including unknown variants, so callers fall through to usage. - profile_
icon_ instructions - Guidance lines pointing at the automatic installer and the manual fallback.
- resolve_
artwork - Resolve an icon preference to concrete artwork against the active CLI theme.
- resolve_
artwork_ with_ theme - Resolve an icon preference to concrete artwork against a theme id.
Dynamic(andUnknown) follow the theme’s own light/dark mode; explicit variants pin their art. - run_
profile_ icon_ install - Run the non-interactive profile-icon install with progress output.
- run_
profile_ icon_ reset - Reset the current session’s iTerm2 profile to its original name.
- run_
terminal_ icon_ show - Report the Dynamic artwork resolution without writing files.
- run_
terminal_ icon_ switch - Install one icon variant immediately.