diff options
author | Michael Weiss <dev.primeos@gmail.com> | 2020-07-31 20:41:04 +0200 |
---|---|---|
committer | Michael Weiss <dev.primeos@gmail.com> | 2020-07-31 20:57:35 +0200 |
commit | e9c36545a7d2f451d0d21f517ca8e8b291247f84 (patch) | |
tree | 36bcc775c8c9da8aec9397606c313c47b59e97b4 /pkgs/applications/version-management/git-and-tools/tig | |
parent | c31de496b516767194c58ccb56c60cfae52dbbc1 (diff) |
tig: Don't install the broken ZSH completion
There are some Nixpkgs specific issues that we could fix but due to changes in Git it currently isn't possible to source git-completion.bash from ZSH (at least not how tig-completion.bash expects it). Upstream issue: https://github.com/jonas/tig/issues/940 For the meantime it seems best to simply not install it anymore so that the fallback implementation from ZSH can be used (more inaccurate as the git-log completion is reused but it is helpful to complete remotes, branches, tags, etc. and doesn't emit an error to the console).
Diffstat (limited to 'pkgs/applications/version-management/git-and-tools/tig')
-rw-r--r-- | pkgs/applications/version-management/git-and-tools/tig/default.nix | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/pkgs/applications/version-management/git-and-tools/tig/default.nix b/pkgs/applications/version-management/git-and-tools/tig/default.nix index cb03a9b42a255..9415c0eecf165 100644 --- a/pkgs/applications/version-management/git-and-tools/tig/default.nix +++ b/pkgs/applications/version-management/git-and-tools/tig/default.nix @@ -34,13 +34,14 @@ stdenv.mkDerivation rec { # fixes tig-completion __git-complete dependency sed -i '1s;^;source ${git}/share/bash-completion/completions/git\n;' contrib/tig-completion.bash - substituteInPlace contrib/tig-completion.zsh \ - --replace 'e=$(dirname ''${funcsourcetrace[1]%:*})/tig-completion.bash' "e=$out/share/bash-completion/completions/tig" - install -D contrib/tig-completion.bash $out/share/bash-completion/completions/tig - install -D contrib/tig-completion.zsh $out/share/zsh/site-functions/_tig cp contrib/vim.tigrc $out/etc/ + # Note: Until https://github.com/jonas/tig/issues/940 is resolved it is best + # not to install the ZSH completion so that the fallback implemenation from + # ZSH can be used (Completion/Unix/Command/_git: "_tig () { _git-log }"): + #install -D contrib/tig-completion.zsh $out/share/zsh/site-functions/_tig + wrapProgram $out/bin/tig \ --prefix PATH ':' "${git}/bin" ''; |