Skip to content

Instantly share code, notes, and snippets.

@calebmeyer
Last active March 10, 2023 18:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save calebmeyer/0570f366ed760774065f94443527c9b6 to your computer and use it in GitHub Desktop.
Save calebmeyer/0570f366ed760774065f94443527c9b6 to your computer and use it in GitHub Desktop.
bob the fish prompt segment for showing architecture
set -x arch_apple_glyph  ' ' #nf-dev-apple
set -x arch_intel_glyph \ueabe ' ' #nf-cod-circuit_board
function __bobthefish_prompt_arch -S -d 'Display current cpu architecture'
set ARCH (arch)
if test "$ARCH" = arm64
set arch_glyph $arch_apple_glyph
set arch_name 'ARM'
else
set arch_glyph $arch_intel_glyph
set arch_name 'Intel'
end
__bobthefish_start_segment $color_desk
echo -ns $arch_glyph $arch_name ' '
set_color normal
end
@calebmeyer
Copy link
Author

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment