Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Icons render as  on MacOS #199

Closed
bennytheshap opened this issue May 21, 2019 · 21 comments
Closed

Icons render as  on MacOS #199

bennytheshap opened this issue May 21, 2019 · 21 comments
Labels
kind/bug Something isn't working

Comments

@bennytheshap
Copy link

Expected behavior

According to the documentation, filenames should be preceded by icons indicating whether the directory entry is a file, folder, etc.

Actual behavior

On my Mac (running latest Mojave), in both Terminal and iTerm, and regardless of terminal font selected, all icons render as a box with a square inside: . Here is a screenshot.

Screen Shot 2019-05-20 at 6 14 56 PM

@bennytheshap bennytheshap added the kind/bug Something isn't working label May 21, 2019
@wawrencelu
Copy link

Same here. Running 10.13.6 on iTerm.

@schu34
Copy link

schu34 commented May 21, 2019

same on 10.14.4 and iTerm with zsh FWIW none of the icons in icons.rs render in the browser or any editors on mac either (tried vscode and sublime)

@crystalneth
Copy link

Instructions say:

Install the patched fonts of powerline nerd-font and/or font-awesome. Have a look at the Nerd Font README for more installation instructions. Don't forget to setup your terminal in order to use the correct font.

After installing nerd-font with brew, I'm not sure what the "correct font" is.

@schu34
Copy link

schu34 commented May 21, 2019

Totally missed that part of the instructions. I got it working by installing nerd-font with brew and then using Hack Nerd Font in iTerm

@bennytheshap
Copy link
Author

Thank you!

@furey
Copy link

furey commented May 21, 2019

For iTerm2 on macOS, my full install process was as follows…

1. Install LSD

brew install lsd

2. Install Homebrew Cask Fonts

brew tap homebrew/cask-fonts

3. Install Hack Nerd Font

brew cask install font-hack-nerd-font

4. Configure iTerm2 Profile Text Font

iTerm2 > Preferences > Profiles > Text > Non-ASCII-Font > Change Font

Screen Shot 2019-05-21 at 12 36 00 pm

Once setup correctly, lsd will return your file/directory icons like so:

lsd

Hope this helps if anyone else gets stuck.

Cheers!

🤓👍

@Peltoche
Copy link
Collaborator

Hi @furey ,

Big thanks for your steps and screens ❤️ . This will go directly into the documentation!

@taylorjason
Copy link

Very helpful, thanks! Has anyone been able to make this work in Hyper?

@sfdye
Copy link

sfdye commented May 22, 2019

Please, this needs to go into the documentation for MacOS setup.

@benjefferies
Copy link

@taylorjason I've just been playing around in hyper and have just resolved it.

You'll need to follow steps 1, 2, 3 in #199 (comment) and then for step 4 edit .hyper.js and update the fontFamily to look like

fontFamily: 'Menlo, "Hack Nerd Font", "DejaVu Sans Mono", "Lucida Console", monospace',

@taylorjason
Copy link

@benjefferies Thanks for the info. I tried that same thing but no luck. I verified I have the latest stable release of Hyper.

@benjefferies
Copy link

Do you have the font installed? You can find out by running system_profiler SPFontsDataType|grep "Hack Nerd Font" and you should see a similar output

system_profiler SPFontsDataType|grep "Hack Nerd Font"
Family: Hack Nerd Font
Family: Hack Nerd Font
Family: Hack Nerd Font
Family: Hack Nerd Font

@taylorjason
Copy link

I do have it installed. I installed with Homebrew and confirmed with font book.

@tnorthcutt
Copy link
Contributor

I just submitted a PR to link to @furey's super helpful comment in the readme 👍

@rainoxu
Copy link

rainoxu commented Jun 29, 2019

I met the same problem with it , thanks!

@breezedancer
Copy link

thanks!

@kyrelldixon
Copy link

brew cask install font-hack-nerd-font

The brew cask install step resulted in the error Error: Unknown command: cask because the brew cask syntax has been deprecated. I used brew install --cask font-hack-nerd-font instead.

@msr8
Copy link

msr8 commented Apr 4, 2022

@kyrelldixon How did you set the text though? I cannot find an option to select separate text for non-ascii characters

Edit: Am I blind?
Screenshot 2022-04-04 at 21 20 15

@zwpaper
Copy link
Member

zwpaper commented Apr 4, 2022

Hi @msr8 , looks like you are using the apple terminal, I also did not find the option for non-asicii characters, so maybe you can change the font directly, Nerd font works perfectly for both ascii and non-ascii characters.

or, If you would like to keep the font for ascii, maybe you can try iTerm2

@MRX-IOS
Copy link

MRX-IOS commented Apr 6, 2022

hi @msr8 you have to change your font from "Lucida Console 13 pt" to "Hack Regular Nerd Font Complete 11"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

17 participants