jhillyerd / plugin-git

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

Check for presence of `$path/functions/__git.init.fish` before sourcing it #103

Closed hexclover closed 10 months ago

hexclover commented 10 months ago

Closes #102.

Test 1: On a home-manager enabled NixOS with fish as default shell, the gst abbreviation works, and SSH with jump host works. Test 2: On an Arch system with fish as default shell and OMF, the gst abbreviation works.

PaulGrandperrin commented 10 months ago

I tried this PR:

        {
          name = "plugin-git"; # git abbrs
          #src = plugin-git.src;
          src = pkgs.fetchFromGitHub {
            owner = "hexclover";
            repo = "plugin-git";
            rev = "master";
            sha256 = "sha256-efKPbsXxjHm1wVWPJCV8teG4DgZN5dshEzX8PWuhKo4";
          };
        }

and it fixes scp for me! thanks :)

PaulGrandperrin commented 10 months ago

I'm using NixOS + HM on unstable FWIW

jhillyerd commented 10 months ago

Thanks!

GaetanLepage commented 7 months ago

Thanks for the fix ! Can you make a git release that would then ship this fix please ? The plugin-git version in nixpkgs is still v0.1 (Feb. 2023)