Avoid duplicate paths in MANPATH

This commit is contained in:
Junegunn Choi 2015-03-26 03:26:28 +09:00
parent eb8fef0031
commit 91876e98cd

View File

@ -186,7 +186,7 @@ fi
# Man path
# --------
if [ -d "$fzf_base/man" ]; then
if [[ ! "\$MANPATH" =~ "$fzf_base/man" && -d "$fzf_base/man" ]]; then
export MANPATH="\$MANPATH:$fzf_base/man"
fi