diff --git a/themes/base.theme.bash b/themes/base.theme.bash index 32250f0e..6e5123a5 100644 --- a/themes/base.theme.bash +++ b/themes/base.theme.bash @@ -178,6 +178,11 @@ function nvm_prompt { fi } +function gvm_prompt { + go_version=`go version` + echo -e "($go_version)" +} + # backwards-compatibility function git_prompt_info { git_prompt_vars diff --git a/themes/doubletime/doubletime.theme.bash b/themes/doubletime/doubletime.theme.bash index 87ced7ed..083db7e7 100644 --- a/themes/doubletime/doubletime.theme.bash +++ b/themes/doubletime/doubletime.theme.bash @@ -21,6 +21,14 @@ fi VIRTUALENV_THEME_PROMPT_PREFIX="(${VIRTUALENV_THEME_PROMPT_COLOR}py${normal}: " VIRTUALENV_THEME_PROMPT_SUFFIX=") " +if [ ! -z $NVM_THEME_PROMPT_COLOR ]; then + NVM_THEME_PROMPT_COLOR=$(eval echo $`echo ${NVM_THEME_PROMPT_COLOR}`); +else + NVM_THEME_PROMPT_COLOR="${yellow}" +fi +NVM_THEME_PROMPT_PREFIX="(${NVM_THEME_PROMPT_COLOR}node${normal}: " +NVM_THEME_PROMPT_SUFFIX=") " + if [ ! -z $THEME_PROMPT_HOST_COLOR ]; then THEME_PROMPT_HOST_COLOR=$(eval echo $`echo ${THEME_PROMPT_HOST_COLOR}`); else diff --git a/themes/doubletime_multiline/doubletime_multiline.theme.bash b/themes/doubletime_multiline/doubletime_multiline.theme.bash index d431657d..270a3039 100644 --- a/themes/doubletime_multiline/doubletime_multiline.theme.bash +++ b/themes/doubletime_multiline/doubletime_multiline.theme.bash @@ -16,7 +16,7 @@ function prompt_setter() { PS1=" $clock $(scm_char) [$THEME_PROMPT_HOST_COLOR\u@${THEME_PROMPT_HOST}$reset_color] $(virtualenv_prompt)$(ruby_version_prompt) \w -$(doubletime_scm_prompt)$reset_color $ " +$(doubletime_scm_prompt)$reset_color β " PS2='> ' PS4='+ ' } diff --git a/themes/doubletime_multiline_pyonly/doubletime_multiline_pyonly.theme.bash b/themes/doubletime_multiline_pyonly/doubletime_multiline_pyonly.theme.bash index 5073507f..99ab1b3c 100644 --- a/themes/doubletime_multiline_pyonly/doubletime_multiline_pyonly.theme.bash +++ b/themes/doubletime_multiline_pyonly/doubletime_multiline_pyonly.theme.bash @@ -14,9 +14,9 @@ function prompt_setter() { clock=$THEME_PROMPT_CLOCK_FORMAT fi PS1=" -$clock $(scm_char) [$THEME_PROMPT_HOST_COLOR\u@${THEME_PROMPT_HOST}$reset_color] $(virtualenv_prompt) +$clock $(scm_char) [$THEME_PROMPT_HOST_COLOR\u@${THEME_PROMPT_HOST}$reset_color] $(nvm_prompt) $(gvm_prompt) \w -$(doubletime_scm_prompt)$reset_color $ " +$(doubletime_scm_prompt)$reset_color β> " PS2='> ' PS4='+ ' }