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.
8 lines
166 B
Plaintext
8 lines
166 B
Plaintext
# https://github.com/riywo/anyenv
|
|
|
|
# git clone https://github.com/riywo/anyenv ${HOME}/.anyenv
|
|
|
|
if (command -v anyenv &>/dev/null); then
|
|
eval "$(anyenv init -)"
|
|
fi
|