powerlevel10k icon indicating copy to clipboard operation
powerlevel10k copied to clipboard

Add `arch` prompt for displaying CPU architecture

Open brent-moffit opened this issue 3 years ago • 1 comments

Adds the arch prompt to p10k.zsh, ARCH_ICON to icons.zsh, and commented entries in the default configs.

Displaying the current CPU architecture is useful on systems where shells may be opened under emulation. For example, ZSH is commonly run using Rosetta on M1-based macs to emulate i386/x86_64 systems.

Users can optionally set POWERLEVEL9K_ARCH_DEFAULT to hide the prompt in shells running under the default system architecture.

Screen Shot 2022-02-02 at 5 55 38 PM

brent-moffit avatar Feb 03 '22 01:02 brent-moffit

This is awesome.

ianks avatar Apr 21 '22 21:04 ianks

Can we get this merged it, it would be great for working on my Mac where I have terminals with different arch's running

kdekorte avatar Oct 08 '22 02:10 kdekorte

Merged. Note that I renamed arch to cpu_arch, removed POWERLEVEL9K_ARCH_DEFAULT and added state. If you've been using the code from the PR, you'll need to update .p10k.zsh.

romkatv avatar Oct 09 '22 09:10 romkatv