[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:
parent
cf0a08baaf
commit
2a1a30dd9e
1 changed files with 2 additions and 1 deletions
|
@ -22,7 +22,8 @@ export LESSHISTFILE="$XDG_CACHE_HOME/less/history"
|
||||||
export LESSHISTSIZE=1000
|
export LESSHISTSIZE=1000
|
||||||
export LOCAL_PREFIX="/usr/local"
|
export LOCAL_PREFIX="/usr/local"
|
||||||
command -v brew &>/dev/null && LOCAL_PREFIX="$(brew --prefix)"
|
command -v brew &>/dev/null && LOCAL_PREFIX="$(brew --prefix)"
|
||||||
export MANPATH="$(MANPATH='' manpath)"
|
MANPATH="$(unset MANPATH; manpath)"
|
||||||
|
export MANPATH
|
||||||
export PAGER=less
|
export PAGER=less
|
||||||
export PYTHONSTARTUP="$XDG_CONFIG_HOME/python/startup.py"
|
export PYTHONSTARTUP="$XDG_CONFIG_HOME/python/startup.py"
|
||||||
export VIMINIT='let $MYVIMRC="$XDG_CONFIG_HOME/vim/vimrc" | source $MYVIMRC'
|
export VIMINIT='let $MYVIMRC="$XDG_CONFIG_HOME/vim/vimrc" | source $MYVIMRC'
|
||||||
|
|
Loading…
Add table
Reference in a new issue