From 639b337b6724004280ce3896af00da9ee5673237 Mon Sep 17 00:00:00 2001 From: Thomas VIAL Date: Tue, 7 May 2013 14:32:48 +0200 Subject: [PATCH 1/2] Added "anothertheme.zsh-theme" --- themes/anothertheme.zsh-theme | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 themes/anothertheme.zsh-theme diff --git a/themes/anothertheme.zsh-theme b/themes/anothertheme.zsh-theme new file mode 100644 index 000000000..03998bc68 --- /dev/null +++ b/themes/anothertheme.zsh-theme @@ -0,0 +1,28 @@ +# Name : Another (simple zsh) theme +# Author : Thomas VIAL +# URL : http://tvi.al + +# The prompt looks like this: +# [12:34:56] user@hostname:/path/to/project [git:branch-name*] $ + +# Installation: +# In your .zshrc file, edit: +# ZSH_THEME="anothertheme" + +# You can change ANOTHERTHEME_USERHOSTNAME_COLOR and ANOTHERTHEME_PATH_COLOR from your .zshrc file. +# It could be useful to set a color per server to avoid mistakes when you have multiple shells open. +# In your .zshrc (do not modifiy the theme) +# ANOTHERTHEME_USERHOSTNAME_COLOR="blue" +# ANOTHERTHEME_PATH_COLOR="green" + +# +# Do not edit the next part +# + +[[ -z "$ANOTHERTHEME_USERHOSTNAME_COLOR" ]] && ANOTHERTHEME_USERHOSTNAME_COLOR="blue" +[[ -z "$ANOTHERTHEME_PATH_COLOR" ]] && ANOTHERTHEME_PATH_COLOR="green" + +PROMPT='[%*] %{$fg[$ANOTHERTHEME_USERHOSTNAME_COLOR]%}%n@%m%{$reset_color%}:%{$fg[$ANOTHERTHEME_PATH_COLOR]%}%/%{$reset_color%}$(git_prompt_info) %(!.#.$) ' + +ZSH_THEME_GIT_PROMPT_PREFIX=" %{$fg[yellow]%}[git:" +ZSH_THEME_GIT_PROMPT_SUFFIX="]%{$reset_color%}" \ No newline at end of file From bab5f6b47cd01914c4a7ae42039f5784bd703369 Mon Sep 17 00:00:00 2001 From: Thomas VIAL Date: Wed, 12 Jun 2013 17:47:48 +0200 Subject: [PATCH 2/2] Added missing new line at the end of file --- themes/anothertheme.zsh-theme | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/themes/anothertheme.zsh-theme b/themes/anothertheme.zsh-theme index 03998bc68..5aa98c4f9 100644 --- a/themes/anothertheme.zsh-theme +++ b/themes/anothertheme.zsh-theme @@ -25,4 +25,5 @@ PROMPT='[%*] %{$fg[$ANOTHERTHEME_USERHOSTNAME_COLOR]%}%n@%m%{$reset_color%}:%{$fg[$ANOTHERTHEME_PATH_COLOR]%}%/%{$reset_color%}$(git_prompt_info) %(!.#.$) ' ZSH_THEME_GIT_PROMPT_PREFIX=" %{$fg[yellow]%}[git:" -ZSH_THEME_GIT_PROMPT_SUFFIX="]%{$reset_color%}" \ No newline at end of file +ZSH_THEME_GIT_PROMPT_SUFFIX="]%{$reset_color%}" +