Skip to content

Commit

Permalink
Correct display of pyenv information
Browse files Browse the repository at this point in the history
  • Loading branch information
daneah committed Jul 15, 2019
1 parent 94c4017 commit 9f93048
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions kolo.zsh-theme
Expand Up @@ -43,13 +43,11 @@ function aws_vault_info(){
}

function virtualenv_info(){
local -r current_env=pyenv_prompt_info
local -r current_env=$(pyenv_prompt_info)
if [ $current_env ]; then
if [ $VIRTUAL_ENV ]; then
echo '%B%F{white}('$(basename $VIRTUAL_ENV)') '
else
echo '%B%F{white}('$($current_env)') '
fi
echo '%B%F{white}('$current_env') '
else
echo '%B%F{white}('$(basename $VIRTUAL_ENV)') '
fi
}

Expand Down

0 comments on commit 9f93048

Please sign in to comment.