-
-
Notifications
You must be signed in to change notification settings - Fork 963
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
prompt show double python virtualenv #19
Comments
@arshavindn should works. Please check. (Don't forget to update, before!) |
And here is one more thing, which this virtualenv is actived, then I run command "exec zsh", which mean replace with a new zsh instance, but the prompt still shows the virtualenv |
@arshavindn why don't you use |
of course I use deactivate, but just in case sometime it makes me confuse if I have to restart the shell |
Well, the part that depends on virtualenv is quite simple: # Virtual environment.
# Show current virtual environment (Python).
spaceship_venv_status() {
[[ $SPACESHIP_VENV_SHOW == false ]] && return
# Check if the current directory running via Virtualenv
[ -n "$VIRTUAL_ENV" ] || return
echo -n " %Bvia%b "
echo -n "%{$fg_bold[blue]%}"
echo -n "$(basename $VIRTUAL_ENV)"
echo -n "%{$reset_color%}"
} If |
Put |
@triostones thanks, it works for me |
just like in attatched picture
The text was updated successfully, but these errors were encountered: