mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-06 02:51:32 +01:00
add plugin for conda
This commit is contained in:
parent
fc40b53e64
commit
27bbc9a4b4
2 changed files with 25 additions and 0 deletions
7
plugins/conda/conda.plugin.zsh
Normal file
7
plugins/conda/conda.plugin.zsh
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
function conda_prompt_info(){
|
||||
[[ -n ${CONDA_DEFAULT_ENV} ]] || return
|
||||
echo "${ZSH_THEME_CONDA_PREFIX=[}${CONDA_DEFAULT_ENV:t:gs/%/%%}${ZSH_THEME_CONDA_SUFFIX=]}"
|
||||
}
|
||||
|
||||
# disables display (${CONDA_DEFAULT_ENV})
|
||||
export CONDA_CHANGEPS1=false
|
||||
Loading…
Add table
Add a link
Reference in a new issue