fancy-git icon indicating copy to clipboard operation
fancy-git copied to clipboard

new to github, stuck with installing on mac

Open average87 opened this issue 3 years ago • 16 comments
trafficstars

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,

average87 avatar Feb 06 '22 02:02 average87

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.

diogocavilha avatar Feb 14 '22 16:02 diogocavilha

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:

diogocavilha avatar Feb 21 '22 12:02 diogocavilha

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.

average87 avatar Feb 22 '22 01:02 average87

Screen Shot 2022-02-21 at 8 43 55 PM

I have the the local repo.

average87 avatar Feb 22 '22 01:02 average87

Screen Shot 2022-02-21 at 8 44 22 PM

-Opened the terminal=> prefrences=>font=> I cant see any of repo font files there.

average87 avatar Feb 22 '22 01:02 average87

I see. Could you paste here the last 10 lines of the ~/.bash_profile file?

diogocavilha avatar Feb 22 '22 13:02 diogocavilha

Is it run by source ~/.bash_profile?

average87 avatar Feb 22 '22 14:02 average87

Yes. There should be a line like . ~/.fancy-git/prompt.sh there.

diogocavilha avatar Feb 23 '22 17:02 diogocavilha

/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.

average87 avatar Feb 24 '22 02:02 average87

I need you to paste here the last 10 lines of the ~/.bash_profile file.

Please, paste here the output of tail ~/.bash_profile.

diogocavilha avatar Feb 24 '22 16:02 diogocavilha

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. Screen Shot 2022-02-24 at 12 55 17 PM

average87 avatar Feb 24 '22 18:02 average87

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 :(

diogocavilha avatar Mar 03 '22 00:03 diogocavilha

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

DanteSung avatar Mar 22 '22 03:03 DanteSung

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.

diogocavilha avatar Mar 27 '22 14:03 diogocavilha

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:

  1. DejaVu-Sans-Mono-Nerd-Font-Complete-Mono.ttf,
  2. JetBrains-Mono-Nerd-Font-Mono.ttf
  3. SourceCodePro+Powerline+Awesome+Regular.ttf The other fonts are missing. None of the above three fonts could support all the icons of the git status. I'm currently using SourceCodePro+Powerline+Awesome+Regular.ttf but the ghost icon that shows I'm using a virtual environment in Conda is missing: image The others are fine: image

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

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

  1. Dejavu Sans Mono
  2. DejavuSansMono Nerd Font Mono
  3. JetBrainsMono Nerd Font Mono
  4. SauceCodePro NF and none of which functions normally: image

Could you please help with this issue?

DanteSung avatar Mar 28 '22 01:03 DanteSung

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

Screen Shot 2022-04-12 at 4 15 49 PM

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

bobsc avatar Apr 12 '22 21:04 bobsc