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

new to github, stuck with installing on mac #104

Open
bigly87 opened this issue Feb 6, 2022 · 16 comments
Open

new to github, stuck with installing on mac #104

bigly87 opened this issue Feb 6, 2022 · 16 comments

Comments

@bigly87
Copy link

bigly87 commented Feb 6, 2022

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,

@diogocavilha
Copy link
Owner

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
Copy link
Owner

Hi, @newot-ot

Is that still a problem?

I'd ask you to close this issue in case the problem has been solved.

Thanks 👍

@bigly87
Copy link
Author

bigly87 commented Feb 22, 2022

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.

@bigly87
Copy link
Author

bigly87 commented Feb 22, 2022

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

I have the the local repo.

@bigly87
Copy link
Author

bigly87 commented Feb 22, 2022

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

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

@diogocavilha
Copy link
Owner

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

@bigly87
Copy link
Author

bigly87 commented Feb 22, 2022 via email

@diogocavilha
Copy link
Owner

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

@bigly87 bigly87 closed this as completed Feb 24, 2022
@bigly87 bigly87 reopened this Feb 24, 2022
@bigly87
Copy link
Author

bigly87 commented Feb 24, 2022

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

@diogocavilha
Copy link
Owner

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

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

@bigly87
Copy link
Author

bigly87 commented Feb 24, 2022

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

@diogocavilha
Copy link
Owner

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

@DanteSung
Copy link

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

@diogocavilha
Copy link
Owner

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.

@DanteSung
Copy link

DanteSung commented Mar 28, 2022

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?

@bobsc
Copy link

bobsc commented Apr 12, 2022

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
.

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

No branches or pull requests

4 participants