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

fancygit: command not found

Open AndreasLuckert opened this issue 4 years ago • 11 comments

After cloning fancy-git into my home-directory, neither from there nor from within the parent-directory of ~/.fancy-git the commands work.

How can I resolve this issue?

Examples:

andylu@hd1pcms0347:/mnt/c/Users/andreas.luckert/.fancy-git$ fancygit -h
fancygit: command not found

andylu@hd1pcms0347:/mnt/c/Users/andreas.luckert/.fancy-git$ cd ..

andylu@hd1pcms0347:/mnt/c/Users/andreas.luckert$ fancygit -h
fancygit: command not found

AndreasLuckert avatar Sep 27 '21 11:09 AndreasLuckert

Hi, @AndreasLuckert

Could you please post the last 10 lines of the ~/.bashrc file?

It seems the fancy git completion isn't working as expected for you. I'd like to understand how the installation has been done.

Did you install it in a specific directory?

diogocavilha avatar Sep 30 '21 14:09 diogocavilha

. ~/.fancy-git/prompt.sh

. ~/.fancy-git/prompt.sh

. ~/.fancy-git/prompt.sh

imtiendat0311 avatar Oct 24 '21 18:10 imtiendat0311

@AndreasLuckert and @superboo0311

I'll be releasing a new fancygit version on next few days. Please, let me know if this problem is still happening after the new version.

diogocavilha avatar Nov 13 '21 15:11 diogocavilha

I think I have quite the same problem. I tried to fancygit --config-reset and get that: sh: 0: Can't open /home/flo/.fancy-git/commands.sh bash: /home/flo/.fancy-git/config.sh: No such file or directory I'm running on v7

Flo-Nz avatar Nov 15 '21 11:11 Flo-Nz

Hi, @Flo-Nz ,

please, run these commands and paste the outputs here...

ls -l ~/.fancy-git/

and

tail ~/.bashrc

diogocavilha avatar Nov 15 '21 14:11 diogocavilha

I'm sorry everything is fine now. I simply didn't run the install in ~ but in a subfolder. After reinstalling it correctly everything is OK now.

Flo-Nz avatar Nov 15 '21 16:11 Flo-Nz

@Flo-Nz that's awesome! I hope you enjoy FancyGit so :)

diogocavilha avatar Nov 15 '21 17:11 diogocavilha

hi @diogocavilha i still have problem with the install i have m1 mac

imtiendat0311 avatar Feb 12 '22 02:02 imtiendat0311

Hi @superboo0311.

Please, paste the last ten lines of your ~/.bash_profile file here.

diogocavilha avatar Feb 20 '22 21:02 diogocavilha

Hi @diogocavilha , I also have the same issue as @AndreasLuckert . Here are the lines of my bash script

export PATH

# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=

# User specific aliases and functions



. ~/.fancy-git/prompt.sh

I then write in my home/<username> directory

fancygit --fonts-install

I get

-bash: fancygit: command not found

copperwiring avatar Nov 17 '22 13:11 copperwiring

Nevermind. It worked after rebooting the terminal 2-3 times

copperwiring avatar Nov 26 '22 13:11 copperwiring