|
|
|
@ -856,10 +856,32 @@
|
|
|
|
|
#####################[ anaconda: conda environment (https://conda.io/) ]######################
|
|
|
|
|
# Anaconda environment color.
|
|
|
|
|
typeset -g POWERLEVEL9K_ANACONDA_FOREGROUND=37
|
|
|
|
|
# Don't show Python version next to the anaconda environment name.
|
|
|
|
|
typeset -g POWERLEVEL9K_ANACONDA_SHOW_PYTHON_VERSION=false
|
|
|
|
|
# Separate environment name from Python version only with a space.
|
|
|
|
|
typeset -g POWERLEVEL9K_ANACONDA_{LEFT,RIGHT}_DELIMITER=
|
|
|
|
|
|
|
|
|
|
# Anaconda segment format. The following parameters are available within the expansion.
|
|
|
|
|
#
|
|
|
|
|
# - CONDA_PREFIX Absolute path to the active Anaconda/Miniconda environment.
|
|
|
|
|
# - CONDA_DEFAULT_ENV Name of the active Anaconda/Miniconda environment.
|
|
|
|
|
# - CONDA_PROMPT_MODIFIER Configurable prompt modifier (see below).
|
|
|
|
|
# - P9K_ANACONDA_PYTHON_VERSION Current python version (python --version).
|
|
|
|
|
#
|
|
|
|
|
# CONDA_PROMPT_MODIFIER can be configured with the following command:
|
|
|
|
|
#
|
|
|
|
|
# conda config --set env_prompt '({default_env}) '
|
|
|
|
|
#
|
|
|
|
|
# The last argument is a Python format string that can use the following variables:
|
|
|
|
|
#
|
|
|
|
|
# - prefix The same as CONDA_PREFIX.
|
|
|
|
|
# - default_env The same as CONDA_DEFAULT_ENV.
|
|
|
|
|
# - name The last segment of CONDA_PREFIX.
|
|
|
|
|
# - stacked_env Comma-separated list of names in the environment stack. The first element is
|
|
|
|
|
# always the same as default_env.
|
|
|
|
|
#
|
|
|
|
|
# Note: '({default_env}) ' is the default value of env_prompt.
|
|
|
|
|
#
|
|
|
|
|
# The default value of POWERLEVEL9K_ANACONDA_CONTENT_EXPANSION expands to $CONDA_PROMPT_MODIFIER
|
|
|
|
|
# without the leading '(' or the trailing ') '.
|
|
|
|
|
typeset -g POWERLEVEL9K_ANACONDA_CONTENT_EXPANSION='${${CONDA_PROMPT_MODIFIER#\(}%\) }'
|
|
|
|
|
|
|
|
|
|
# Custom icon.
|
|
|
|
|
# typeset -g POWERLEVEL9K_ANACONDA_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
|
|
|
|
|
|
|
|
|