jhillyerd / plugin-git

Git aliases plugin for the Fish shell (similar to oh-my-zsh git)
MIT License
607 stars 85 forks source link

Not working under fisher anymore #78

Closed eoli3n closed 2 years ago

eoli3n commented 2 years ago
$ fish --version
fish, version 3.3.1

$ fisher --version
fisher, version 4.3.1

asciicast

jhillyerd commented 2 years ago

I'm not a fisher user myself, so someone else will need to troubleshoot this. As a workaround, you can try running __git.init manually, which should install the abbreviations. You should only need to do this one time, and they will stick around for all new fish sessions.

eoli3n commented 2 years ago

Ok, just retried at home on Void Linux. It doesn't work on Arch Linux, but it still works on Void Linux. So the problem seems to not be related to fisher. Same fish and fisher versions on both OS.

If I manually run __git.init, it works for the current shell. Edit : hey, now its working, even I close/open a new term... as you said, but I didn't read well.

jhillyerd commented 2 years ago

Yeah, the way we install the abbreviations they will stick around, as fish itself preserves them for your user. This is to reduce shell startup time.

This hook is what should be launched by fisher once installed: https://github.com/jhillyerd/plugin-git/blob/master/hooks/install.fish -- no idea what would prevent it from working on Arch.

eoli3n commented 2 years ago

I just removed then readd the plugin with fisher. It works perfectly. No clue about what happened, but I can't reproduce. I will reopen if needed.