From e35a2450d9e9ebce238bd4626e925d6fd0c3aa7f Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Thu, 16 Jul 2015 15:22:49 +0200 Subject: [PATCH] Apropos completion: Ignore stderr Fixes fish-shell/fish-shell#1171 --- share/completions/apropos.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/completions/apropos.fish b/share/completions/apropos.fish index 5fe4b9f13..757830d66 100644 --- a/share/completions/apropos.fish +++ b/share/completions/apropos.fish @@ -2,7 +2,7 @@ function __fish_complete_apropos if test (commandline -ct) set str (commandline -ct) - apropos $str|sed -e "s/^\(.*$str\([^ ]*\).*\)\$/$str\2"\t"\1/" + apropos $str ^/dev/null |sed -e "s/^\(.*$str\([^ ]*\).*\)\$/$str\2"\t"\1/" end end