From ce0c52d35348b3655b70702a219143d5bbedba96 Mon Sep 17 00:00:00 2001 From: Dag Odenhall Date: Thu, 9 May 2013 12:53:19 +0200 Subject: [PATCH] Silence errors when ack doesn't support --dump It seems to be new in ack 2.x and with 1.96 I get error messages when the ack completions are loaded. --- share/completions/ack.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/completions/ack.fish b/share/completions/ack.fish index 558ba9264..6ad573b71 100644 --- a/share/completions/ack.fish +++ b/share/completions/ack.fish @@ -84,7 +84,7 @@ complete -c ack -l bar -d 'The warning admiral' # File types if type ack > /dev/null - for type in (ack --dump | perl -lne 'print $1 if /^\s+--type-add=([^:]+)/' | uniq) + for type in (ack --dump ^/dev/null | perl -lne 'print $1 if /^\s+--type-add=([^:]+)/' | uniq) complete -c ack -l $type -d "Allow $type file type" complete -c ack -l no$type -l no-$type -d "Don't allow $type file type" end