spaceship-prompt
spaceship-prompt copied to clipboard
Option to use Nerd Font in place of Powerline Font.
I am requesting a feature to switch between Nerd Font and Powerline Font by using some variable like SPACESHIP_PROMPT_FONT
in the .zshrc
.
# To chose Nerd Font
SPACESHIP_PROMPT_FONT="nerdfont"
# To chose Powerline Font
SPACESHIP_PROMPT_FONT="poweerline-font"
I would like to suggest nerd font because it has rich collection of icon and symbols for example
![Screenshot 2019-03-13 at 11 48 16 AM](https://user-images.githubusercontent.com/10801618/54257627-f121c580-4585-11e9-8712-6c519872cc17.png)
Related matchai/spacefish/issues/177
Not the solution you're talking about, but you can set this up for yourself pretty easily: set your terminal app to use the font of your choice and then in your zshrc, below where Spaceship is loaded, redefine any symbols, e.g.
SPACESHIP_RUBY_SYMBOL="<your character>"
I can also recommand icons-in-terminal which allows you to use most of the iconic fonts (powerline, devicons, octicons, etc. (if you re-build it, you can add the one you wants I think)) without requiring to change the font of your terminal !
Section symbols are personal to every users. We define a standard set of icons for each section and users are free to customize them as they wish. Multiple icon configurations would also make it difficult to get on consensus which icon to bundle for each section.
That's my take on it, I'll leave the final call to @denysdovhan
For what it's worth:
I started using spaceship-prompt (which is stellar btw) recently and already had MesloLGS NF
installed and I haven't seen any display issues yet inside VSCode terminal, Terminal (Mac) or iTerm2 all of which look similar to:
![Screen Shot 2021-12-01 at 2 32 00 AM](https://user-images.githubusercontent.com/94251352/144107413-58c6d4bc-1e41-4400-9681-493debb15f97.png)
I have seen some glitch using that same font and other Hack Nerd Fonts in Alacritty and Hyper Term like:
![Screen Shot 2021-12-01 at 2 33 11 AM](https://user-images.githubusercontent.com/94251352/144107721-6005678a-82ca-4a14-98dd-d511adca6a84.png)
MacOS Monterey Version 12.1 Beta (21C5039b) Fonts used appear in Font Book without any visible warnings MesloLGS NF fonts downloaded like so:
curl -fLo "${HOME}/Library/Fonts/MesloLGS-NF-Regular.ttf" --create-dirs https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Regular.ttf
curl -fLo "${HOME}/Library/Fonts/MesloLGS-NF-Bold.ttf" --create-dirs https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold.ttf
curl -fLo "${HOME}/Library/Fonts/MesloLGS-NF-Italic.ttf" --create-dirs https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Italic.ttf
curl -fLo "${HOME}/Library/Fonts/MesloLGS-NF-Bold-Italic.ttf" --create-dirs https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold%20Italic.ttf
If I could find a way to get Alacritty looking like VSCode/Terminal/iTerm2. But I'm to too worried about it personally.
If I could find a way to get Alacritty looking like VSCode/Terminal/iTerm2.
... would be a happy camper. ⛺