rc.d/anyenv, rc.d/screen, aliases.d/mc, and rc.d/startx were the last holdouts still using `which` to check tool availability. Every other file in rc.d/* already uses `command -v`, which doesn't depend on an external binary being installed.
6 lines
133 B
Plaintext
6 lines
133 B
Plaintext
if (command -v mc &> /dev/null); then
|
|
if [ "${TERM}" = "rxvt-unicode" ]; then
|
|
alias mc="TERM=rxvt-unicode-256color mc"
|
|
fi
|
|
fi
|