Do not set MANPATH on NetBSD, because there is non-GNU man and it does not
allow trailing ":" to note default path inclusion.
--- a/.env Fri May 27 22:55:56 2016 +0300
+++ b/.env Thu Jun 02 16:15:01 2016 +0300
@@ -46,11 +46,16 @@
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH":$HOME/usr/lib
fi
-if [[ -z $MANPATH ]]; then
- export MANPATH=$HOME/usr/share/man:
-elif [[ ! $MANPATH =~ $HOME/usr/share/man: ]]; then
- export MANPATH=$MANPATH:$HOME/usr/share/man:
-fi
+case $OSTYPE in
+ netbsd*) ;; # Do nothing, because NetBSD uses non-GNU man.
+ *)
+ if [[ -z $MANPATH ]]; then
+ export MANPATH=$HOME/usr/share/man:
+ elif [[ ! $MANPATH =~ $HOME/usr/share/man: ]]; then
+ export MANPATH=$MANPATH:$HOME/usr/share/man:
+ fi
+ ;;
+esac
if [[ -z $INFOPATH ]]; then
export INFOPATH=$HOME/usr/share/info: