aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/completions/ack.fish
diff options
context:
space:
mode:
authorGravatar Dag Odenhall <dag.odenhall@gmail.com>2013-05-09 12:53:19 +0200
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-05-13 02:04:53 -0700
commitce0c52d35348b3655b70702a219143d5bbedba96 (patch)
tree22edf5df700bd4c9fdf1ff66f40663b7a67bc33d /share/completions/ack.fish
parentb03515276eb2d81bdf3c9643b48e83261ac7b5c0 (diff)
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.
Diffstat (limited to 'share/completions/ack.fish')
-rw-r--r--share/completions/ack.fish2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/completions/ack.fish b/share/completions/ack.fish
index 558ba926..6ad573b7 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