From 032695a473d1ea899e95d8fe993cef34b6a07a0d Mon Sep 17 00:00:00 2001 From: dodoru Date: Fri, 30 Mar 2018 17:00:58 +0800 Subject: [PATCH] new theme robbyrussell-time, simpley add time string --- themes/robbyrussell-time.zsh-theme | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 themes/robbyrussell-time.zsh-theme diff --git a/themes/robbyrussell-time.zsh-theme b/themes/robbyrussell-time.zsh-theme new file mode 100644 index 000000000..ad78dd5c5 --- /dev/null +++ b/themes/robbyrussell-time.zsh-theme @@ -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]%})"