about summary refs log tree commit diff stats
path: root/profile/manpath.sh
blob: b52f5f86f756895b24aa9b37a41714bcc0abc6e7 (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_PATH/local/man" \
	"$LOCAL_PATH/man"

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

export MANPATH