Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 1.22 KB

README.md

File metadata and controls

35 lines (23 loc) · 1.22 KB

Pyenv

Installation

To use this segment, you need to activate it by adding pyenv to your P9K_LEFT_PROMPT_ELEMENTS or P9K_RIGHT_PROMPT_ELEMENTS array, depending where you want to show this segment.

Configuration

This segment shows the version of Python being used when using pyenv to change your current Python stack.

The PYENV_VERSION environment variable will be used if specified. Otherwise it figures out the version being used by taking the output of the pyenv version-name command.

  • If pyenv is not in $PATH, nothing will be shown.
  • If the current Python version is the same as the global Python version, nothing will be shown.
Variable Default Value Description
P9K_PYENV_PROMPT_ALWAYS_SHOW false Set to true if you wish to show the pyenv segment even if the current Python version is the same as the global Python version

Color Customization

You can change the foreground and background color of this segment by setting

P9K_PYENV_FOREGROUND='red'
P9K_PYENV_BACKGROUND='blue'

Customize Icon

The main Icon can be changed by setting P9K_PYENV_ICON="my_icon". To change the icon color only, set P9K_PYENV_ICON_COLOR="red".