Last active
March 10, 2023 18:14
-
-
Save calebmeyer/0570f366ed760774065f94443527c9b6 to your computer and use it in GitHub Desktop.
bob the fish prompt segment for showing architecture
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set -x arch_apple_glyph ' ' #nf-dev-apple | |
set -x arch_intel_glyph \ueabe ' ' #nf-cod-circuit_board |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Author
calebmeyer
commented
Mar 10, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment