mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-19 21:41:07 +01:00
e8504ac49a
that only change the foreground color. %F works at least since Zsh 4.3.
24 lines
785 B
Bash
24 lines
785 B
Bash
|
||
local user='%F{magenta}%n@%F{magenta}%m%f'
|
||
local pwd='%F{blue}%~%f'
|
||
local return_code='%(?..%F{red}%? ↵%f)'
|
||
local git_branch='$(git_prompt_status)%f$(git_prompt_info)%f'
|
||
|
||
ZSH_THEME_RVM_PROMPT_OPTIONS="i v g"
|
||
ZSH_THEME_GIT_PROMPT_PREFIX="%F{green}"
|
||
ZSH_THEME_GIT_PROMPT_SUFFIX="%f"
|
||
ZSH_THEME_GIT_PROMPT_DIRTY=""
|
||
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
||
|
||
ZSH_THEME_GIT_PROMPT_ADDED="%F{green} ✚"
|
||
ZSH_THEME_GIT_PROMPT_MODIFIED="%F{blue} ✹"
|
||
ZSH_THEME_GIT_PROMPT_DELETED="%F{red} ✖"
|
||
ZSH_THEME_GIT_PROMPT_RENAMED="%F{magenta} ➜"
|
||
ZSH_THEME_GIT_PROMPT_UNMERGED="%F{yellow} ═"
|
||
ZSH_THEME_GIT_PROMPT_UNTRACKED="%F{cyan} ✭"
|
||
|
||
ZSH_THEME_RUBY_PROMPT_PREFIX="%F{green}‹"
|
||
ZSH_THEME_RUBY_PROMPT_SUFFIX="›%f"
|
||
|
||
PROMPT="${user} ${pwd}$ "
|
||
RPROMPT="${return_code} ${git_branch} \$(ruby_prompt_info)"
|