mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-25 09:13:35 +01:00
feat(bira): add conda
env information (requires conda-env
plugin) (#12546)
Closes #10274 Closes #12546 Co-authored-by: elfisworking <zymustb@126.com> Signed-off-by: elfisworking <zymustb@126.com>
This commit is contained in:
parent
3012c257bc
commit
be10a91277
@ -2,6 +2,7 @@ local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
|
|||||||
local user_host="%B%(!.%{$fg[red]%}.%{$fg[green]%})%n@%m%{$reset_color%} "
|
local user_host="%B%(!.%{$fg[red]%}.%{$fg[green]%})%n@%m%{$reset_color%} "
|
||||||
local user_symbol='%(!.#.$)'
|
local user_symbol='%(!.#.$)'
|
||||||
local current_dir="%B%{$fg[blue]%}%~ %{$reset_color%}"
|
local current_dir="%B%{$fg[blue]%}%~ %{$reset_color%}"
|
||||||
|
local conda_prompt='$(conda_prompt_info)'
|
||||||
|
|
||||||
local vcs_branch='$(git_prompt_info)$(hg_prompt_info)'
|
local vcs_branch='$(git_prompt_info)$(hg_prompt_info)'
|
||||||
local rvm_ruby='$(ruby_prompt_info)'
|
local rvm_ruby='$(ruby_prompt_info)'
|
||||||
@ -14,7 +15,7 @@ fi
|
|||||||
|
|
||||||
ZSH_THEME_RVM_PROMPT_OPTIONS="i v g"
|
ZSH_THEME_RVM_PROMPT_OPTIONS="i v g"
|
||||||
|
|
||||||
PROMPT="╭─${user_host}${current_dir}${rvm_ruby}${vcs_branch}${venv_prompt}${kube_prompt}
|
PROMPT="╭─${conda_prompt}${user_host}${current_dir}${rvm_ruby}${vcs_branch}${venv_prompt}${kube_prompt}
|
||||||
╰─%B${user_symbol}%b "
|
╰─%B${user_symbol}%b "
|
||||||
RPROMPT="%B${return_code}%b"
|
RPROMPT="%B${return_code}%b"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user