mirror of
https://github.com/ohmybash/oh-my-bash.git
synced 2024-05-11 05:55:37 +00:00
Refactor "{type => _omb_util_command_exists}"
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user