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

Make git in your PATH win
This commit is contained in:
Rohit Singh
2026-02-11 03:34:18 -05:00
parent 9ac3f1b22c
commit f66438c690
+2 -1
View File
@@ -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 = [