From 15387ba74d7ce67b144444d07e11f6f5c67f9650 Mon Sep 17 00:00:00 2001 From: afc163 Date: Thu, 14 Nov 2013 14:18:24 +0800 Subject: [PATCH] update afc163.zsh-theme --- themes/afc163.zsh-theme | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/themes/afc163.zsh-theme b/themes/afc163.zsh-theme index b801a257f..0c04881f0 100644 --- a/themes/afc163.zsh-theme +++ b/themes/afc163.zsh-theme @@ -1,12 +1,13 @@ -PROMPT='%{$fg_bold[red]%}➜ %{$fg_bold[green]%}%p %{$fg[cyan]%}%c%{$fg_bold[grey]%}$(package_version)%{$fg_bold[grey]%} %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}' +PROMPT='%{$fg_bold[green]%}➼ %{$fg_bold[green]%}%p %{$fg[cyan]%}%c%{$fg_bold[grey]%}$(package_version)%{$fg_bold[grey]%} %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}' -ZSH_THEME_GIT_PROMPT_PREFIX="git:(%{$fg[red]%}" +ZSH_THEME_GIT_PROMPT_PREFIX="git:❨%{$fg[red]%}" ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" -ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗%{$reset_color%}" -ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})" +ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}❩ %{$fg[yellow]%}✗%{$reset_color%}" +ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%}❩" function package_version() { if [ -f ./package.json ]; then echo "@"$(grep '"version"' ./package.json | head -n 1 | awk -F'"' '{print $4}') fi } +master〕❲master❳