mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-28 07:50:09 +08:00
0707bfce53
I created a theme that I feel confortable with and want to share with everyone. The prompt format is: <user>@<host> <current_dir> (<git_status>)$
12 lines
457 B
Bash
12 lines
457 B
Bash
# Oh-my-Zsh prompt created by gianu
|
|
#
|
|
# github.com/gianu
|
|
# sgianazza@gmail.com
|
|
|
|
PROMPT='[%{$fg_bold[white]%}%n%{$reset_color%}@%{$fg_bold[red]%}%m%{$reset_color%} %{$fg[cyan]%}%c%{$reset_color%} %{$fg_bold[green]%}$(git_prompt_info)%{$reset_color%}]$ '
|
|
|
|
ZSH_THEME_GIT_PROMPT_PREFIX="("
|
|
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%})"
|
|
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[green]%} %{$fg[yellow]%}✗%{$reset_color%}"
|
|
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[green]%}"
|