Fix man completion: suppress stderr of aprops

This commit is contained in:
Cheer Xiao 2012-12-16 01:25:27 +08:00
parent 87baa4d3d2
commit 28264423a4

View file

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