mirror of https://github.com/ohmyzsh/ohmyzsh.git
Compare commits
6 Commits
2fbf2e9afa
...
1254ef659a
Author | SHA1 | Date |
---|---|---|
|
1254ef659a | |
|
7a3695aadf | |
|
ba7a5e68e6 | |
|
a6465f839f | |
|
2422635513 | |
|
e501f8aace |
|
@ -5,6 +5,7 @@ files=(
|
|||
/etc/grc.zsh # default
|
||||
/usr/local/etc/grc.zsh # homebrew darwin-x64
|
||||
/opt/homebrew/etc/grc.zsh # homebrew darwin-arm64
|
||||
/home/linuxbrew/.linuxbrew/etc/grc.zsh # linuxbrew
|
||||
/usr/share/grc/grc.zsh # Gentoo Linux (app-misc/grc)
|
||||
)
|
||||
|
||||
|
|
|
@ -227,6 +227,18 @@ prompt_virtualenv() {
|
|||
fi
|
||||
}
|
||||
|
||||
# Anaconda: current working conda env
|
||||
# To replace the conda modification of PS1 do `conda config --set changeps1 False`
|
||||
# or add 'changeps1: False' to your .condarc file.
|
||||
prompt_conda() {
|
||||
local conda_env="$CONDA_DEFAULT_ENV"
|
||||
if [[ -n $conda_env ]]; then
|
||||
if [[ -z $CONDA_PROMPT_MODIFIER ]]; then
|
||||
prompt_segment blue black "conda:$(basename $conda_env)"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
# Status:
|
||||
# - was there an error
|
||||
# - am I root
|
||||
|
@ -258,6 +270,7 @@ prompt_aws() {
|
|||
build_prompt() {
|
||||
RETVAL=$?
|
||||
prompt_status
|
||||
prompt_conda
|
||||
prompt_virtualenv
|
||||
prompt_aws
|
||||
prompt_context
|
||||
|
|
Loading…
Reference in New Issue