fancy-git
fancy-git copied to clipboard
new to github, stuck with installing on mac
Hey, I am interested to use this on my MAC OS. the first thing first I did is to enter this to my zsh terminal(I did not clone your reop or anything) 1)curl -sS https://raw.githubusercontent.com/diogocavilha/fancy-git/master/install.sh | sh now I have hidden .fancy-git in my root directory. 2)It says change your Terminal font to the desired fonts. How? is it through preferences, cause I cant find fonts in your repo there.
Thanks,
Hi, @newot-ot
Thank you for giving it a try.
The first step might have installed the fancygit properly. The hidden folder you see is the repo itself. The installing command clones it for you in the right place and install all the needed fonts.
The second step you mentioned is just as you said, you must change the terminal font through the terminal preferences.
But... you said you use zsh. It seems to be a good experiment. Please, let me know if it's working as it should be.
Hi, @newot-ot
Is that still a problem?
I'd ask you to close this issue in case the problem has been solved.
Thanks :+1:
Yes and this more seem to be like user issue and my level in git-github. my objective was to have the exact same terminal represent in your repo default images.

I have the the local repo.

-Opened the terminal=> prefrences=>font=> I cant see any of repo font files there.
I see.
Could you paste here the last 10 lines of the ~/.bash_profile file?
Is it run by source ~/.bash_profile?
Yes. There should be a line like . ~/.fancy-git/prompt.sh there.
/Users/karoon/.fancy-git/fancygit-completion:63: command not found: complete /Users/karoon/.fancy-git/aliases:25: no matches found: gdof=find . -name *.orig | xargs rm -rf usage: grep [-abcDEFGHhIiJLlmnOoqRSsUVvwxZ] [-A num] [-B num] [-C[num]] [-e pattern] [-f file] [--binary-files=value] [--color=when] [--context[=num]] [--directories=action] [--label] [--line-buffered] [--null] [pattern] [file ...] /Users/karoon/.fancy-git/fancygit-completion:63: command not found: complete /Users/karoon/.fancy-git/aliases:25: no matches found: gdof=find . -name *.orig | xargs rm -rf usage: grep [-abcDEFGHhIiJLlmnOoqRSsUVvwxZ] [-A num] [-B num] [-C[num]] [-e pattern] [-f file] [--binary-files=value] [--color=when] [--context[=num]] [--directories=action] [--label] [--line-buffered] [--null] [pattern] [file ...] /Users/karoon/.fancy-git/fancygit-completion:63: command not found: complete /Users/karoon/.fancy-git/aliases:25: no matches found: gdof=find . -name *.orig | xargs rm -rf usage: grep [-abcDEFGHhIiJLlmnOoqRSsUVvwxZ] [-A num] [-B num] [-C[num]] [-e pattern] [-f file] [--binary-files=value] [--color=when] [--context[=num]] [--directories=action] [--label] [--line-buffered] [--null] [pattern] [file ...] /Users/karoon/.fancy-git/fancygit-completion:63: command not found: complete /Users/karoon/.fancy-git/aliases:25: no matches found: gdof=find . -name *.orig | xargs rm -rf usage: grep [-abcDEFGHhIiJLlmnOoqRSsUVvwxZ] [-A num] [-B num] [-C[num]] [-e pattern] [-f file] [--binary-files=value] [--color=when] [--context[=num]] [--directories=action] [--label] [--line-buffered] [--null] [pattern] [file ...] /Users/karoon/.fancy-git/fancygit-completion:63: command not found: complete /Users/karoon/.fancy-git/aliases:25: no matches found: gdof=find . -name *.orig | xargs rm -rf usage: grep [-abcDEFGHhIiJLlmnOoqRSsUVvwxZ] [-A num] [-B num] [-C[num]] [-e pattern] [-f file] [--binary-files=value] [--color=when] [--context[=num]] [--directories=action] [--label] [--line-buffered] [--null] [pattern] [file ...] /Users/karoon/.fancy-git/fancygit-completion:63: command not found: complete /Users/karoon/.fancy-git/aliases:25: no matches found: gdof=find . -name *.orig | xargs rm -rf usage: grep [-abcDEFGHhIiJLlmnOoqRSsUVvwxZ] [-A num] [-B num] [-C[num]] [-e pattern] [-f file] [--binary-files=value] [--color=when] [--context[=num]] [--directories=action] [--label] [--line-buffered] [--null] [pattern] [file ...]
output of source ~/.bash_profile.
I need you to paste here the last 10 lines of the ~/.bash_profile file.
Please, paste here the output of tail ~/.bash_profile.
I asked if it's done by running source ~/.bash_profile and you said yes, guess that was not we wanted to see.
Here the output of tail ~/.bash_profile.

Hi, @newot-ot
For some reason, your bash_profile is loading fancygit five times in a row.
Let it just exist one of . ~/.fancy-git/prompt.sh.
But my bet is that zsh is conflictant with FancyGit :(
hey. I got a similar problem here. MacOS's default shell is zsh. I found a .bashprofile in my root directory which only contains one line ~/.fancy-git/prompt.sh. But I can't find any fancygit related stuff in my .zshrc file.
Is it possible to run fancygit on MacOS then? THanks
Hi, @DanteSung
Maybe writing the line . ~/.fancy-git/prompt.sh at the end of the .zshrc might solve the problem, I'm not sure. Let me know if it works for you.
And please, I'd ask you to paste the .zshrc 10 last lines here.
Thanks for your reply! I decided to run fanctgit on my Linux server (Pop OS 21.04) but ran into some fonts issue. I normally ssh into my server but some icons are missing even though I've switched the font of my terminal on the Mac side to the recommended fonts SourceCodePro+Powerline+Awesome+Regular.ttf in the READEME.md file.
Also, it seems that the terminal on the MAC side only detects the following fonts:
DejaVu-Sans-Mono-Nerd-Font-Complete-Mono.ttf,JetBrains-Mono-Nerd-Font-Mono.ttfSourceCodePro+Powerline+Awesome+Regular.ttfThe other fonts are missing. None of the above three fonts could support all the icons of the git status. I'm currently usingSourceCodePro+Powerline+Awesome+Regular.ttfbut the ghost icon that shows I'm using a virtual environment in Conda is missing:
The others are fine:

If I switch to JetBrains-Mono-Nerd-Font-Mono.ttf the ghost icon works well but the others are missing:

Same thing happens to my linux terminal as well. I use VNC to login my Popos. I could only find the following four fonts on my terminal font list
Dejavu Sans MonoDejavuSansMono Nerd Font MonoJetBrainsMono Nerd Font MonoSauceCodePro NFand none of which functions normally:
Could you please help with this issue?
I have installed the JetBrains and DejaVu fonts, and tried both of them in my Terminal Preferences > Text > Font, and I still get the Chinese characters instead of the nice icons

I have my environment set to LANG=en_US.UTF-8 .