mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2025-01-13 20:37:51 +02:00
cleanup
This commit is contained in:
parent
dc6fdf52b7
commit
3ca1477bd8
@ -356,11 +356,9 @@ right_prompt_segment() {
|
||||
set_default POWERLEVEL9K_ANACONDA_LEFT_DELIMITER "("
|
||||
set_default POWERLEVEL9K_ANACONDA_RIGHT_DELIMITER ")"
|
||||
prompt_anaconda() {
|
||||
# Depending on the conda version, either might be set. This
|
||||
# variant works even if both are set.
|
||||
local path=$CONDA_ENV_PATH$CONDA_PREFIX
|
||||
if [[ -n $path ]]; then
|
||||
local msg="$POWERLEVEL9K_ANACONDA_LEFT_DELIMITER${${path:t}//\%/%%}$POWERLEVEL9K_ANACONDA_RIGHT_DELIMITER"
|
||||
local p=${CONDA_PREFIX:-$CONDA_ENV_PATH}
|
||||
if [[ -n $p ]]; then
|
||||
local msg="$POWERLEVEL9K_ANACONDA_LEFT_DELIMITER${${p:t}//\%/%%}$POWERLEVEL9K_ANACONDA_RIGHT_DELIMITER"
|
||||
"$1_prompt_segment" "$0" "$2" "blue" "$DEFAULT_COLOR" 'PYTHON_ICON' 0 '' "$msg"
|
||||
fi
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user