[bash] fix shellcheck error SC2155

This makes sure the return code of extracting the path from manpath(1)
is not ignored. Also, unset the MANPATH environment variable instead of
just assigning an empty string to it, so that manpath(1) determines a
suitable default hierarchy to search for manual pages.
This commit is contained in:
Fernando Schauenburg 2020-12-03 18:33:52 +01:00
parent cf0a08baaf
commit 2a1a30dd9e

View file

@ -22,7 +22,8 @@ export LESSHISTFILE="$XDG_CACHE_HOME/less/history"
export LESSHISTSIZE=1000
export LOCAL_PREFIX="/usr/local"
command -v brew &>/dev/null && LOCAL_PREFIX="$(brew --prefix)"
export MANPATH="$(MANPATH='' manpath)"
MANPATH="$(unset MANPATH; manpath)"
export MANPATH
export PAGER=less
export PYTHONSTARTUP="$XDG_CONFIG_HOME/python/startup.py"
export VIMINIT='let $MYVIMRC="$XDG_CONFIG_HOME/vim/vimrc" | source $MYVIMRC'