mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-13 03:01:32 +01:00
Tweaking prompt for more git info
This commit is contained in:
parent
ed45817b77
commit
03735b6446
1 changed files with 4 additions and 4 deletions
|
|
@ -16,15 +16,15 @@
|
|||
# $FG[125] - strawberry
|
||||
# $FG[145] - white
|
||||
|
||||
PROMPT='%{$fg[green]%}$(collapse_pwd)%{$fg[white]%} $(git_prompt_info)%{$reset_color%} ≫ '
|
||||
PROMPT='%{$fg[green]%}[$(collapse_pwd)]
|
||||
%{$fg[yellow]%}$(git_prompt_short_sha)%{$reset_color%}$(git_prompt_info)%{$reset_color%} '
|
||||
|
||||
ZSH_THEME_GIT_PROMPT_PREFIX="// %{$fg[red]%}"
|
||||
#ZSH_THEME_GIT_PROMPT_SUFFIX="%{$fg[white]%} // %{$reset_color%}"
|
||||
ZSH_THEME_GIT_PROMPT_PREFIX=" %{$fg[red]%}"
|
||||
ZSH_THEME_GIT_PROMPT_SUFFIX=""
|
||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[yellow]%} ✼%{$reset_color%}"
|
||||
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%} ⌘"
|
||||
|
||||
# RPROMPT='${return_status}$(git_prompt_status)%{$reset_color%}'
|
||||
RPROMPT='${return_status}$(git_prompt_status) %{$reset_color%}'
|
||||
|
||||
ZSH_THEME_GIT_PROMPT_ADDED="%{$fg[green]%} +++"
|
||||
ZSH_THEME_GIT_PROMPT_MODIFIED="%{$fg[blue]%} ***"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue