shrc: check existence of /usr/bin/man before using it

This commit is contained in:
Lucas Gabriel Vuotto 2024-07-17 20:59:25 +00:00
parent d2e60b08ce
commit 64b3fd9ca2

View File

@ -31,7 +31,7 @@ if command -v nvi >/dev/null; then
alias vi=nvi
fi
if [ -d ~/local/man ]; then
if [ -d ~/local/man ] && [ -x /usr/bin/man ]; then
alias man="/usr/bin/man -m ~/local/man"
fi