else
venv="${VIRTUAL_ENV##*/}"
fi
- echo "(${venv})"
+ echo "🐍${venv}"
+}
+
+function rvm_info {
+ if [[ -z "$RUBY_VERSION" ]]; then
+ rvminfo="default"
+ else
+ rvminfo=`rvm-prompt`
+ fi
+ echo "💎${rvminfo}"
+}
+
+function nvm_info {
+ if [[ -z "$NVM_BIN" ]]; then
+ nvminfo="default"
+ else
+ nvminfo=`nvm current`
+ fi
+ echo "💛${nvminfo}"
}
function box_name {
# Define prompts.
PROMPT='
-%{%F{red}%}%n%{%f%}@%{%F{yellow}%}$(box_name)%{%f%} %{%B%F{green}%}${PWD/#$HOME/~}%{%f%b%}${git_info[prompt]} %{%F{black}%}$(virtualenv_info)%{%f%}
+%{%F{black}%}$(nvm_info) $(rvm_info) $(virtualenv_info)
+%{%F{red}%}%n%{%f%}@%{%F{yellow}%}$(box_name)%{%f%} %{%B%F{green}%}${PWD/#$HOME/~}%{%f%b%}${git_info[prompt]} %{%f%}
%(?,,%{${%B%F{white}%}[%?]%{%f%b%} )$ '
}