nnn: install shell completions

This commit is contained in:
Will Dietz 2019-01-03 20:32:23 -06:00
parent 6a0bff977a
commit e07488d2a0

View file

@ -21,6 +21,13 @@ stdenv.mkDerivation rec {
makeFlags = [ "DESTDIR=${placeholder "out"}" "PREFIX=" ];
# shell completions
postInstall = ''
install -Dm555 scripts/auto-completion/bash/nnn-completion.bash $out/share/bash-completion/completions/nnn.bash
install -Dm555 scripts/auto-completion/zsh/_nnn -t $out/share/zsh/site-functions
install -Dm555 scripts/auto-completion/fish/nnn.fish -t $out/share/fish/vendor_completions.d
'';
meta = {
description = "Small ncurses-based file browser forked from noice";
homepage = https://github.com/jarun/nnn;