matchai / spacefish

🚀🐟 The fish shell prompt for astronauts
https://spacefish.matchai.dev
MIT License
963 stars 77 forks source link

pyenv section not being displayed correctly #204

Open ccarterlandis opened 4 years ago

ccarterlandis commented 4 years ago

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 Configuration

set SPACEFISH_PROMPT_ORDER time user dir host git package node golang haskell pyenv exec_time line_sep battery jobs exit_code char
set SPACEFISH_CHAR_SYMBOL ∫

Environment

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: Screen Shot 2019-08-16 at 11 33 06 AM

After activating the virtual environment: Screen Shot 2019-08-16 at 11 33 32 AM

Thanks!

matchai commented 4 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. 😄

ccarterlandis commented 4 years ago

@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!

TomAnthony commented 4 years ago

For future people - rather than pyenv in SPACEFISH_PROMPT_ORDER you need to set venv. :)

NotTheDr01ds commented 3 years ago

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.