about summary refs log tree commit diff stats
path: root/profile/manpath.sh
blob: bda4fd2d54b9f98caf530887c7af3c43fc8eb11d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# See 00_functions.sh for `path_add_unsafe'.

path_add_unsafe MANPATH \
	"${XDG_DATA_HOME:-$LOCAL_PREFIX/share}/man" \
	"$LOCAL_PREFIX/local/man" \
	"$LOCAL_PREFIX/local/man" \
	"$LOCAL_PREFIX/man"

# $MANPATH ends with `:' so that manpath(1) will prepend it to its
# special thing.
case "$MANPATH" in
*:) ;;
*) MANPATH="$MANPATH:" ;;
esac

export MANPATH