Show python version in rprompt when in venv

parent 97188e30
......@@ -7,7 +7,7 @@ autoload -Uz add-zsh-hook
#{{{ Useful function for prompt
function virtualenv_info {
[ $VIRTUAL_ENV ] && echo "(%{$fg[green]%}🐍 $(basename $VIRTUAL_ENV)%{$reset_color%})"
[ $VIRTUAL_ENV ] && echo "(%{$fg[green]%}🐍$(python --version 2>&1 | awk '{print $2}')%{$reset_color%})"
}
function prompt_char {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment