aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions/__fish_complete_man.fish
diff options
context:
space:
mode:
authorGravatar Cheer Xiao <xiaqqaix@gmail.com>2012-12-16 01:25:27 +0800
committerGravatar Cheer Xiao <xiaqqaix@gmail.com>2012-12-16 01:25:27 +0800
commit28264423a4d64af01682e09249b7b02879b02307 (patch)
treed99737ecd9de35b71cd633347982bdc7c5257ba2 /share/functions/__fish_complete_man.fish
parent87baa4d3d224939698926dc119b46e6d87a8b9e8 (diff)
Fix man completion: suppress stderr of aprops
Diffstat (limited to 'share/functions/__fish_complete_man.fish')
-rw-r--r--share/functions/__fish_complete_man.fish2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/functions/__fish_complete_man.fish b/share/functions/__fish_complete_man.fish
index 7be041f0..a5e4fa40 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