3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #31842 from nicknovitski/silver-searcher-completion

silver-searcher: move bash completion to etc/bash-completion.d/
This commit is contained in:
Graham Christensen 2017-11-19 19:48:16 -05:00 committed by GitHub
commit 57e737f57b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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