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

path_add_unsafe MANPATH \
                "${XDG_DATA_HOME:-$HOME/.local/share}/man" \
                "$HOME/.local/local/man" \
                "$HOME/usr/local/man"

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

export MANPATH