From df08fbdf69201e37be45d24cff08aea7b397c026 Mon Sep 17 00:00:00 2001 From: Nick Novitski Date: Sun, 19 Nov 2017 16:34:02 -0800 Subject: [PATCH] silver-searcher: move bash completion to etc/bash-completion.d/ --- pkgs/tools/text/silver-searcher/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/tools/text/silver-searcher/default.nix b/pkgs/tools/text/silver-searcher/default.nix index 156a8bd8f646..51f78cd0d53d 100644 --- a/pkgs/tools/text/silver-searcher/default.nix +++ b/pkgs/tools/text/silver-searcher/default.nix @@ -16,6 +16,12 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ autoreconfHook pkgconfig ]; buildInputs = [ pcre zlib lzma ]; + postInstall = '' + mkdir -p $out/etc/bash_completion.d + mv $out/share/the_silver_searcher/completions/ag.bashcomp.sh $out/etc/bash_completion.d + rm -r $out/share/the_silver_searcher + ''; + meta = with stdenv.lib; { homepage = https://github.com/ggreer/the_silver_searcher/; description = "A code-searching tool similar to ack, but faster";