From 28264423a4d64af01682e09249b7b02879b02307 Mon Sep 17 00:00:00 2001 From: Cheer Xiao Date: Sun, 16 Dec 2012 01:25:27 +0800 Subject: [PATCH] Fix man completion: suppress stderr of aprops --- share/functions/__fish_complete_man.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/functions/__fish_complete_man.fish b/share/functions/__fish_complete_man.fish index 7be041f0c..a5e4fa40f 100644 --- a/share/functions/__fish_complete_man.fish +++ b/share/functions/__fish_complete_man.fish @@ -21,7 +21,7 @@ function __fish_complete_man set section $section"[^)]*" # Do the actual search - apropos (commandline -ct) | sgrep \^(commandline -ct) | sed -n -e 's/\([^ ]*\).*(\('$section'\)) *- */\1'\t'\2: /p' + apropos (commandline -ct) ^/dev/null | sgrep \^(commandline -ct) | sed -n -e 's/\([^ ]*\).*(\('$section'\)) *- */\1'\t'\2: /p' end end