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

Can’t get it running on MacOS #42

Open
iCraft85 opened this issue Nov 13, 2021 · 3 comments
Open

Can’t get it running on MacOS #42

iCraft85 opened this issue Nov 13, 2021 · 3 comments

Comments

@iCraft85
Copy link

Hi! I git cloned the repo and then I used ./install.sh. The output I received is the following:

+ DATA=/Users/user/.local/share/icons-in-terminal/
+ mkdir -p /Users/user/.fonts
+ cp ./build/icons-in-terminal.ttf /Users/user/.fonts/
+ mkdir -p /Users/user/.config/fontconfig/conf.d
+ ./scripts/generate_fontconfig.sh
./scripts/generate_fontconfig.sh: line 20: fc-list: command not found
+ fc-cache -fvr --really-force /Users/baner75418/.fonts
./install.sh: line 30: fc-cache: command not found

After this I ran the following commands because I am not sure but I think that's what I have to do. All of the commands ran but after that when I ran the command ./scripts/generate_fontconfig.sh I received the following output:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
  <!-- You are supposed to remove all the lines but the one(s) where the font is used in your terminal -->
  <!-- Only monospaced fonts have been listed here -->
  <!-- If your font isn't in the list, uncomment the next line and write its name -->
  <!-- <alias><family>YOUR_TERMINAL_FONT</family><default><family>icons-in-terminal</family></default></alias> -->
./scripts/generate_fontconfig.sh: line 20: fc-list: command not found
  <alias><family>Monospace</family><default><family>icons-in-terminal</family></default></alias>
</fontconfig>

After I got to this part I got really confused on what it wanted me to do. How should I proceed from here.

Terminal: Kitty
Shell: ZSH
macOS Version: Big Sur 11.5.2

@nowell-morris
Copy link

nowell-morris commented Aug 12, 2022

line 20: fc-list: command not found
This means you have not installed fontconfig as a package. It is not a standard package for a Mac system, but is a very common package on Linux. You can install it with homebrew: brew install fontconfig
I got this far, but I am getting no display of icons, myself. I get a squarebox with a question mark in it
Terminal: iTerm2
Shell: bash (homebrew latest bash, 5.1.16)
macOS: Monterey 12.5 on M1

@2KAbhishek
Copy link

Same issue I'm just seeing the glyphs as text:

firacode (116 glyphs):
\uee2d  \uee2e  \uee2f  \uee30  \uee31  \uee32  \uee33  \uee34  \uee35  \uee36

@ed9w2in6
Copy link

ed9w2in6 commented Oct 31, 2023

Please read the first issue of this project:
#1

This is duplicated.

In short you will need both fontconfig and double clicking the font install to Apple's font book for macos.
For kitty I configure sth like this: symbol_map U+E000-U+EEA0 icons-in-terminal.

Use an alternative script in #1 for testing.
It should still work, see my answer here: #52 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants