Open ccarterlandis opened 5 years ago
Hi @ccarterlandis. Thank you for opening an issue. Unfortunately spacefish is no longer under active development, but I suggest you take a look at its successor https://github.com/starship/starship, which has similar pyenv support built-in.
That said, if someone comes around with a PR to fix this bug, I'll gladly review and merge it. 😄
@matchai oh wow, I had no idea there was a successor! I found a link to this prompt here and liked it so much I instantly downloaded it! I would have preferred to just start with the sucessor but the install was so easy I don't think I'll have to worry to about installing a new one. Thanks for letting me know!
For future people - rather than pyenv
in SPACEFISH_PROMPT_ORDER
you need to set venv
. :)
And for future readers, you also need to set VIRTUAL_ENV_DISABLE_PROMPT
to 1
to disable the default fish prompt integration done by venv.
Bug Report
Current Behavior When I activate a Python virtual environment, the name of the environment appears on the line above the prompt, devoid of any styling save for a pair of parentheses. AFAIK, this is just the default way Python displays a virutalenv.
Expected Behavior I would expect the virtualenv section to appear inline with the rest of prompt and be formatted correctly.
Relevant
Fish
ConfigurationEnvironment
echo $SPACEFISH_VERSION
]2.6.1
fish --version
]3.0.2
fisher
iTerm2
macOS Mojave v10.14.3
Possible Solution
Additional context/Screenshots Add any other context about the problem here. If applicable, add screenshots to help explain.
Before activating the virtual environment:
After activating the virtual environment:
Thanks!