From 4c580b0107ebc58eebd8c44920ea18558ae73384 Mon Sep 17 00:00:00 2001 From: wzy <32936898+Freed-Wu@users.noreply.github.com> Date: Fri, 31 Mar 2023 02:00:49 +0800 Subject: [PATCH] visidata: fix #202165, add shell completions (#223894) * visidata: fix #202165, add shell completions * visidata: replace pname with _visidata --------- Co-authored-by: superherointj <5861043+superherointj@users.noreply.github.com> --- pkgs/applications/misc/visidata/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/applications/misc/visidata/default.nix b/pkgs/applications/misc/visidata/default.nix index 65fe488ee85f..7eaef8b202e7 100644 --- a/pkgs/applications/misc/visidata/default.nix +++ b/pkgs/applications/misc/visidata/default.nix @@ -130,6 +130,10 @@ buildPythonApplication rec { bash dev/test.sh runHook postCheck ''; + postInstall = '' + python dev/zsh-completion.py + install -Dm644 _visidata -t $out/share/zsh/site-functions + ''; pythonImportsCheck = ["visidata"];