mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2025-01-19 04:47:40 +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_LEFT_DELIMITER "("
|
||||||
set_default POWERLEVEL9K_ANACONDA_RIGHT_DELIMITER ")"
|
set_default POWERLEVEL9K_ANACONDA_RIGHT_DELIMITER ")"
|
||||||
prompt_anaconda() {
|
prompt_anaconda() {
|
||||||
# Depending on the conda version, either might be set. This
|
local p=${CONDA_PREFIX:-$CONDA_ENV_PATH}
|
||||||
# variant works even if both are set.
|
if [[ -n $p ]]; then
|
||||||
local path=$CONDA_ENV_PATH$CONDA_PREFIX
|
local msg="$POWERLEVEL9K_ANACONDA_LEFT_DELIMITER${${p:t}//\%/%%}$POWERLEVEL9K_ANACONDA_RIGHT_DELIMITER"
|
||||||
if [[ -n $path ]]; then
|
|
||||||
local msg="$POWERLEVEL9K_ANACONDA_LEFT_DELIMITER${${path:t}//\%/%%}$POWERLEVEL9K_ANACONDA_RIGHT_DELIMITER"
|
|
||||||
"$1_prompt_segment" "$0" "$2" "blue" "$DEFAULT_COLOR" 'PYTHON_ICON' 0 '' "$msg"
|
"$1_prompt_segment" "$0" "$2" "blue" "$DEFAULT_COLOR" 'PYTHON_ICON' 0 '' "$msg"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user