spaceship-prompt icon indicating copy to clipboard operation
spaceship-prompt copied to clipboard

Option to use Nerd Font in place of Powerline Font.

Open RatanShreshtha opened this issue 5 years ago • 5 comments

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

Related matchai/spacefish/issues/177

RatanShreshtha avatar Mar 13 '19 06:03 RatanShreshtha

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>"

olets avatar Mar 15 '19 01:03 olets

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 !

AlexisBRENON avatar May 23 '19 07:05 AlexisBRENON

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

salmanulfarzy avatar May 24 '19 15:05 salmanulfarzy

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

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

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.

ghost avatar Nov 30 '21 18:11 ghost

If I could find a way to get Alacritty looking like VSCode/Terminal/iTerm2.

... would be a happy camper. ⛺

ghost avatar Nov 30 '21 18:11 ghost