From 55a839a0a8c3c18e6476cdb6b9b640dc16a6a98b Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Thu, 26 Nov 2015 18:28:28 +1300 Subject: Ignore stderr from manpath(1) --- bash/bashrc.d/man.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash/bashrc.d/man.bash b/bash/bashrc.d/man.bash index 201ebe64..e091e60e 100644 --- a/bash/bashrc.d/man.bash +++ b/bash/bashrc.d/man.bash @@ -39,7 +39,7 @@ _man() { declare -a pages # Break manpath(1) output into an array of paths - IFS=: read -a manpaths -r < <(manpath) + IFS=: read -a manpaths -r < <(manpath 2>/dev/null) # Iterate through the manual page paths and add every manual page we find for manpath in "${manpaths[@]}" ; do -- cgit v1.2.3