Skip to main content

should_apply_iterm2_profile

Function should_apply_iterm2_profile 

Source
pub fn should_apply_iterm2_profile(
    iterm_session: bool,
    tmux_session: bool,
    profile_installed: bool,
) -> bool
Expand description

Pure gate for the one-shot iTerm2 profile switch.

Switch only for a real iTerm2 session outside tmux (proprietary sequences do not pass through multiplexers) with the shipped profile installed, so removing the profile file disables the switch.