From e859636d35f33677a6b40976c07c8f4c97aba9d9 Mon Sep 17 00:00:00 2001 From: Emre Berge Ergenekon Date: Sat, 21 Jan 2012 01:50:20 -0800 Subject: [PATCH 1/2] Made a copy of candy as a starting point and created my own theme. --- themes/emre.zsh-theme | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 themes/emre.zsh-theme diff --git a/themes/emre.zsh-theme b/themes/emre.zsh-theme new file mode 100644 index 000000000..772d28ea9 --- /dev/null +++ b/themes/emre.zsh-theme @@ -0,0 +1,17 @@ +function get_ip() { + ifconfig en0 | + grep -oP "(?<=inet ).*?(?= )" +} + +PROMT_NAME_COLOR="%{$fg_bold[green]%}" +PROMT_DIRECTORY_COLOR="%{$fg_bold[blue]%}" +PROMT_COLOR="%{$fg_bold[yellow]%}" + +PROMPT=$'\ +${PROMT_NAME_COLOR}%n@$(get_ip) %{$reset_color%}${PROMT_DIRECTORY_COLOR}%~%{$reset_color%}\ +${PROMT_COLOR}%D{%I:%M} $(git_prompt_info)>%{$reset_color%} ' + +ZSH_THEME_GIT_PROMPT_PREFIX="" +ZSH_THEME_GIT_PROMPT_SUFFIX="" +ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg_bold[red]%}!" +ZSH_THEME_GIT_PROMPT_CLEAN=" " From 1f71de09e1984e643c835c79ecb14a8177f5dc59 Mon Sep 17 00:00:00 2001 From: Emre Berge Ergenekon Date: Wed, 18 Jul 2012 20:07:48 +0200 Subject: [PATCH 2/2] Fixes 24h clock on the emre theme --- themes/emre.zsh-theme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/emre.zsh-theme b/themes/emre.zsh-theme index 772d28ea9..41b240ac6 100644 --- a/themes/emre.zsh-theme +++ b/themes/emre.zsh-theme @@ -9,7 +9,7 @@ PROMT_COLOR="%{$fg_bold[yellow]%}" PROMPT=$'\ ${PROMT_NAME_COLOR}%n@$(get_ip) %{$reset_color%}${PROMT_DIRECTORY_COLOR}%~%{$reset_color%}\ -${PROMT_COLOR}%D{%I:%M} $(git_prompt_info)>%{$reset_color%} ' +${PROMT_COLOR}%D{%R} $(git_prompt_info)>%{$reset_color%} ' ZSH_THEME_GIT_PROMPT_PREFIX="" ZSH_THEME_GIT_PROMPT_SUFFIX=""