From c7f660a9299e8118b67722f3c0513ddc662cb72f Mon Sep 17 00:00:00 2001 From: Mike Wallio Date: Wed, 27 Nov 2024 11:13:00 -0500 Subject: [PATCH] Add rosetta item when running translated --- functions/_tide_item_rosetta.fish | 6 ++++++ functions/tide/configure/configs/classic.fish | 2 ++ functions/tide/configure/configs/classic_16color.fish | 2 ++ functions/tide/configure/configs/lean.fish | 2 ++ functions/tide/configure/configs/lean_16color.fish | 2 ++ functions/tide/configure/configs/rainbow.fish | 2 ++ functions/tide/configure/configs/rainbow_16color.fish | 2 ++ functions/tide/configure/icons.fish | 1 + 8 files changed, 19 insertions(+) create mode 100644 functions/_tide_item_rosetta.fish diff --git a/functions/_tide_item_rosetta.fish b/functions/_tide_item_rosetta.fish new file mode 100644 index 00000000..a0850eb4 --- /dev/null +++ b/functions/_tide_item_rosetta.fish @@ -0,0 +1,6 @@ +function _tide_item_rosetta + if test (sysctl -ne sysctl.proc_translated) = 1 + set machine (uname -m) + _tide_print_item rosetta $tide_rosetta_icon' ' $machine + end +end diff --git a/functions/tide/configure/configs/classic.fish b/functions/tide/configure/configs/classic.fish index 6f09bbaf..438bf341 100644 --- a/functions/tide/configure/configs/classic.fish +++ b/functions/tide/configure/configs/classic.fish @@ -1,3 +1,5 @@ +tide_rosetta_bg_color 444444 +tide_rosetta_color BE7A14 tide_aws_bg_color 444444 tide_aws_color FF9900 tide_bun_bg_color 14151A diff --git a/functions/tide/configure/configs/classic_16color.fish b/functions/tide/configure/configs/classic_16color.fish index fe730c5f..43272d78 100644 --- a/functions/tide/configure/configs/classic_16color.fish +++ b/functions/tide/configure/configs/classic_16color.fish @@ -1,3 +1,5 @@ +tide_rosetta_bg_color black +tide_rosetta_color bryellow tide_aws_bg_color black tide_aws_color yellow tide_bun_bg_color black diff --git a/functions/tide/configure/configs/lean.fish b/functions/tide/configure/configs/lean.fish index db3f1d20..114086dd 100644 --- a/functions/tide/configure/configs/lean.fish +++ b/functions/tide/configure/configs/lean.fish @@ -1,3 +1,5 @@ +tide_rosetta_bg_color normal +tide_rosetta_color DC5D12 tide_aws_bg_color normal tide_aws_color FF9900 tide_bun_bg_color normal diff --git a/functions/tide/configure/configs/lean_16color.fish b/functions/tide/configure/configs/lean_16color.fish index 699ce45a..46626bd9 100644 --- a/functions/tide/configure/configs/lean_16color.fish +++ b/functions/tide/configure/configs/lean_16color.fish @@ -1,3 +1,5 @@ +tide_rosetta_bg_color normal +tide_rosetta_color bryellow tide_aws_bg_color normal tide_aws_color yellow tide_bun_bg_color normal diff --git a/functions/tide/configure/configs/rainbow.fish b/functions/tide/configure/configs/rainbow.fish index 79e9cb4a..4302660f 100644 --- a/functions/tide/configure/configs/rainbow.fish +++ b/functions/tide/configure/configs/rainbow.fish @@ -1,3 +1,5 @@ +tide_rosetta_bg_color DC5D12 +tide_rosetta_color 000000 tide_aws_bg_color FF9900 tide_aws_color 232F3E tide_bun_bg_color FBF0DF diff --git a/functions/tide/configure/configs/rainbow_16color.fish b/functions/tide/configure/configs/rainbow_16color.fish index 5d206115..b3fc03d1 100644 --- a/functions/tide/configure/configs/rainbow_16color.fish +++ b/functions/tide/configure/configs/rainbow_16color.fish @@ -1,3 +1,5 @@ +tide_rosetta_bg_color bryellow +tide_rosetta_color brblack tide_aws_bg_color yellow tide_aws_color brblack tide_bun_bg_color white diff --git a/functions/tide/configure/icons.fish b/functions/tide/configure/icons.fish index a687bed2..03b325bc 100644 --- a/functions/tide/configure/icons.fish +++ b/functions/tide/configure/icons.fish @@ -1,3 +1,4 @@ +tide_rosetta_icon  tide_aws_icon  # Actual aws glyph is harder to see tide_bun_icon 󰳓 tide_character_icon ❯