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>)$master
parent
b8b241f630
commit
0707bfce53
1 changed files with 11 additions and 0 deletions
@ -0,0 +1,11 @@ |
||||
# 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]%}" |
||||
Loading…
Reference in new issue