romkatv / powerlevel10k

A Zsh theme
MIT License
46.59k stars 2.19k forks source link

Upgrading from powerlevel9k added Py to the conda segment #1269

Closed tcpekin closed 3 years ago

tcpekin commented 3 years ago

I upgraded from powerlevel9k to 10k, and it retained everything the same way as before, except it added both the conda Python version, as well as Py to the command line prompt. My current prompt is shown below.

image

I was able to remove the Python version by setting POWERLEVEL9K_ANACONDA_SHOW_PYTHON_VERSION=false, but how can I remove the Py section before the environment name?

My full options are below:

ZSH_THEME="powerlevel10k/powerlevel10k"

# Set powerlevel10k options
POWERLEVEL9K_SHORTEN_DIR_LENGTH=1
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(anaconda context dir vcs)
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status)
POWERLEVEL9K_DIR_DEFAULT_FOREGROUND='white'
POWERLEVEL9K_DIR_HOME_FOREGROUND='white'
POWERLEVEL9K_DIR_HOME_SUBFOLDER_FOREGROUND='white'
POWERLEVEL9K_ANACONDA_FOREGROUND='white'
POWERLEVEL9K_ANACONDA_SHOW_PYTHON_VERSION=false
POWERLEVEL9K_ANACONDA_BACKGROUND='035'
POWERLEVEL9K_PROMPT_ON_NEWLINE=true
romkatv commented 3 years ago

Try this:

POWERLEVEL9K_PYTHON_ICON=
tcpekin commented 3 years ago

Works perfectly, thank you!