Update themes/base.theme.bash

Co-authored-by: John D Pell <52194+gaelicWizard@users.noreply.github.com>
pull/1946/head
Konstantin Gredeskoul 2022-02-24 13:29:40 -08:00 committed by GitHub
parent 4125123fe5
commit f7c32563f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -397,7 +397,8 @@ function node_command_version_prompt() {
} }
function node_version_prompt() { function node_version_prompt() {
local node_version="$(nvm_version_prompt)" local node_version
node_version="$(nvm_version_prompt)"
if [[ -z "${node_version}" ]]; then if [[ -z "${node_version}" ]]; then
node_version="$(node_command_version_prompt)" node_version="$(node_command_version_prompt)"
fi fi