all repos — nixfiles @ e73ff2535a3b0c5fe837ea439003961b4c5c87d4

System and user configuration, managed by nix and home-manager

move Apple Terminal theme switcher to per-term function

Alin
commit

e73ff2535a3b0c5fe837ea439003961b4c5c87d4

parent

0deb085c8fd582166a39e01656c2933974d74acd

1 file changed, 15 insertions(+), 0 deletions(-)

changed files
M user/settings/fish/per-term/Apple_Terminal.fish → user/settings/fish/per-term/Apple_Terminal.fish
@@ -45,3 +45,18 @@ return
end end end + +function set_terminal_appearance --description="Set Terminal to use a [light|dark] theme (default=toggle)" + if test -n "$argv[1]" + set --function target $argv[1] + else + if test $fish_terminal_color_theme = light + set --function target dark + else + set --function target light + end + end + + echo Making it $target... + osascript (status dirname)/set-terminal-theme.applescript $target +end