summaryrefslogtreecommitdiff
path: root/dot-oh-my-zsh/custom/themes/spaceship-prompt/sections/conda.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'dot-oh-my-zsh/custom/themes/spaceship-prompt/sections/conda.zsh')
m---------dot-oh-my-zsh0
-rw-r--r--dot-oh-my-zsh/custom/themes/spaceship-prompt/sections/conda.zsh41
2 files changed, 0 insertions, 41 deletions
diff --git a/dot-oh-my-zsh b/dot-oh-my-zsh
new file mode 160000
+Subproject 6fe84bf5c82da7b1f6d7c5ec3e5c447721ac8ce
diff --git a/dot-oh-my-zsh/custom/themes/spaceship-prompt/sections/conda.zsh b/dot-oh-my-zsh/custom/themes/spaceship-prompt/sections/conda.zsh
deleted file mode 100644
index 1ed473e9..00000000
--- a/dot-oh-my-zsh/custom/themes/spaceship-prompt/sections/conda.zsh
+++ /dev/null
@@ -1,41 +0,0 @@
-#
-# Conda
-#
-# Package, dependency and environment management for any language
-# Link: https://conda.io/
-
-# ------------------------------------------------------------------------------
-# Configuration
-# ------------------------------------------------------------------------------
-
-SPACESHIP_CONDA_SHOW="${SPACESHIP_CONDA_SHOW=true}"
-SPACESHIP_CONDA_PREFIX="${SPACESHIP_CONDA_PREFIX="$SPACESHIP_PROMPT_DEFAULT_PREFIX"}"
-SPACESHIP_CONDA_SUFFIX="${SPACESHIP_CONDA_SUFFIX="$SPACESHIP_PROMPT_DEFAULT_SUFFIX"}"
-SPACESHIP_CONDA_SYMBOL="${SPACESHIP_CONDA_SYMBOL="🅒 "}"
-SPACESHIP_CONDA_COLOR="${SPACESHIP_CONDA_COLOR="blue"}"
-SPACESHIP_CONDA_VERBOSE="${SPACESHIP_CONDA_VERBOSE=true}"
-
-# ------------------------------------------------------------------------------
-# Section
-# ------------------------------------------------------------------------------
-
-# Show current conda virtual environment
-spaceship_conda() {
- [[ $SPACESHIP_CONDA_SHOW == false ]] && return
-
- # Check if running via conda virtualenv
- spaceship::exists conda && [ -n "$CONDA_DEFAULT_ENV" ] || return
-
- local conda_env=${CONDA_DEFAULT_ENV}
-
- if [[ $SPACESHIP_CONDA_VERBOSE == false ]]; then
- conda_env=${CONDA_DEFAULT_ENV:t}
- fi
-
-
- spaceship::section \
- "$SPACESHIP_CONDA_COLOR" \
- "$SPACESHIP_CONDA_PREFIX" \
- "${SPACESHIP_CONDA_SYMBOL}${conda_env}" \
- "$SPACESHIP_CONDA_SUFFIX"
-}