Refactor "{type => _omb_util_command_exists}"

This commit is contained in:
Koichi Murase
2022-08-23 17:42:39 +09:00
parent de66a70f91
commit 2202aeeb04
5 changed files with 5 additions and 5 deletions

View File

@@ -5,7 +5,7 @@
# Try to load nvm only if command not already available
if ! type "nvm" &> /dev/null; then
if ! _omb_util_command_exists nvm; then
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
# This is done as part of completions!!!
# [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion