mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-28 03:32:19 +08:00
75de90dc9e
- simple theme - hostname and current folder on left prompt - git branch and working tree status on the right
8 lines
378 B
Bash
8 lines
378 B
Bash
PROMPT='%{$fg_bold[red]%}%m%{$reset_color%}:%{$fg[cyan]%}%c%{$reset_color%}:%# '
|
|
RPROMPT='%{$fg_bold[green]%}$(git_prompt_info)%{$reset_color%}% '
|
|
|
|
ZSH_THEME_GIT_PROMPT_PREFIX="<%{$fg[red]%}"
|
|
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
|
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[green]%} %{$fg[yellow]%}✗%{$fg[green]%}>%{$reset_color%}"
|
|
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[green]%}>"
|