Apropos completion: Ignore stderr

Fixes fish-shell/fish-shell#1171
This commit is contained in:
Fabian Homborg 2015-07-16 15:22:49 +02:00 committed by ridiculousfish
parent 616d848fac
commit e35a2450d9

View file

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