shrc: check existence of /usr/bin/man before using it
This commit is contained in:
parent
d2e60b08ce
commit
64b3fd9ca2
@ -31,7 +31,7 @@ if command -v nvi >/dev/null; then
|
|||||||
alias vi=nvi
|
alias vi=nvi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -d ~/local/man ]; then
|
if [ -d ~/local/man ] && [ -x /usr/bin/man ]; then
|
||||||
alias man="/usr/bin/man -m ~/local/man"
|
alias man="/usr/bin/man -m ~/local/man"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user