Commit f66438c6 authored by Rohit Singh's avatar Rohit Singh
Browse files

tig: prefer git that's in PATH over the bundled one

Make git in your PATH win
parent 9ac3f1b2
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -73,8 +73,9 @@ stdenv.mkDerivation (finalAttrs: {
    # ZSH can be used (Completion/Unix/Command/_git: "_tig () { _git-log }"):
    #install -D contrib/tig-completion.zsh $out/share/zsh/site-functions/_tig

    # Prefer the git in PATH, but add a fallback one in case there isn't one.
    wrapProgram $out/bin/tig \
      --prefix PATH ':' "${git}/bin"
      --suffix PATH ':' "${git}/bin"
  '';

  outputs = [