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>
This commit is contained in:
wzy 2023-03-31 02:00:49 +08:00 committed by GitHub
parent 5d9c49eedc
commit 4c580b0107
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"];