spacefish icon indicating copy to clipboard operation
spacefish copied to clipboard

Dropping pyenv in favor of python section

Open matchai opened this issue 5 years ago • 5 comments

Looks like we've got a bit of updating to do for the pyenv section. This would also be a great opportunity to add testing where we don't have any at the moment. 😄

🐟 spacefish-bot — Pull request copied from: https://github.com/denysdovhan/spaceship-prompt/pull/431.

Description

Dropping pyenv section in favor of python section, python section has three display modes.

Variable Value Meaning
SPACESHIP_PYTHON_SHOW always Always display python version information if relevant files exist in directory
SPACESHIP_PYTHON_SHOW true (default) Display python version only inside virtual environment if relevant files exist
SPACESHIP_PYTHON_SHOW false Don't display python version in prompt

Screenshot

python version inside virtualenv

Tasks

  • [x] Update docs
  • [ ] Backward compatibility

Related denysdovhan/spaceship-prompt#394 Close denysdovhan/spaceship-prompt#410

matchai avatar Nov 25 '18 05:11 matchai

Note it was merged to 4.0 branch and not to master.

salmanulfarzy avatar Nov 25 '18 07:11 salmanulfarzy

Good call. I'll have this planned for 2.0, which will be parallel to spaceship's 4.0 👍

matchai avatar Nov 25 '18 08:11 matchai

Hello! Does this mean that the theme will support other python version managers, like ASDF, virtualenvwrapper, etc, in the near future?

Thank you for the awesome work you've done porting this theme to fish.

CSergienko avatar Jan 18 '19 21:01 CSergienko

As soon as such features are added to spaceship, we aim to add support for equivalent features in spacefish. 😄

matchai avatar Jan 18 '19 21:01 matchai

Fair enough.

CSergienko avatar Jan 18 '19 22:01 CSergienko