mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-29 04:53:17 +02:00
new theme robbyrussell-time, simpley add time string
This commit is contained in:
parent
0cec462621
commit
032695a473
1 changed files with 9 additions and 0 deletions
9
themes/robbyrussell-time.zsh-theme
Normal file
9
themes/robbyrussell-time.zsh-theme
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
local ret_status="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ )"
|
||||||
|
ZSH_THEME_CURRENT_DATE=`date +`
|
||||||
|
|
||||||
|
PROMPT='${ret_status} [$ZSH_THEME_CURRENT_DATE%*] %{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info)'
|
||||||
|
|
||||||
|
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}git:(%{$fg[red]%}"
|
||||||
|
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
|
||||||
|
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗"
|
||||||
|
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue