Skip to content

Commit

Permalink
Add rosetta item when running translated
Browse files Browse the repository at this point in the history
  • Loading branch information
scaryrawr committed Nov 27, 2024
1 parent 44c521a commit c7f660a
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 0 deletions.
6 changes: 6 additions & 0 deletions functions/_tide_item_rosetta.fish
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions functions/tide/configure/configs/classic.fish
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 2 additions & 0 deletions functions/tide/configure/configs/classic_16color.fish
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 2 additions & 0 deletions functions/tide/configure/configs/lean.fish
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 2 additions & 0 deletions functions/tide/configure/configs/lean_16color.fish
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 2 additions & 0 deletions functions/tide/configure/configs/rainbow.fish
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 2 additions & 0 deletions functions/tide/configure/configs/rainbow_16color.fish
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions functions/tide/configure/icons.fish
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
tide_rosetta_icon 
tide_aws_icon  # Actual aws glyph is harder to see
tide_bun_icon 󰳓
tide_character_icon ❯
Expand Down

0 comments on commit c7f660a

Please sign in to comment.