diff --git a/nvm.sh b/nvm.sh index c26d84d..1a72fa1 100644 --- a/nvm.sh +++ b/nvm.sh @@ -70,7 +70,7 @@ nvm_command_info() { elif type "${COMMAND}" | nvm_grep -q "^${COMMAND} is an alias for"; then # shellcheck disable=SC2230 INFO="$(which "${COMMAND}") ($(type "${COMMAND}" | command awk '{ $1=$2=$3=$4=$5="" ;print }' | command sed 's/^\ *//g'))" - elif type "${COMMAND}" | nvm_grep -q "^${COMMAND} is \\/"; then + elif type "${COMMAND}" | nvm_grep -q "^${COMMAND} is /"; then INFO="$(type "${COMMAND}" | command awk '{print $3}')" else INFO="$(type "${COMMAND}")"