From 0de805b8ea89397fbdc955c5b7633e2bcf3e314a Mon Sep 17 00:00:00 2001 From: Jacob Evelyn Date: Tue, 15 Oct 2013 09:28:03 -0400 Subject: [PATCH] Add jacobevelyn theme. --- themes/jacobevelyn.zsh-theme | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 themes/jacobevelyn.zsh-theme diff --git a/themes/jacobevelyn.zsh-theme b/themes/jacobevelyn.zsh-theme new file mode 100644 index 000000000..a913fe15b --- /dev/null +++ b/themes/jacobevelyn.zsh-theme @@ -0,0 +1,22 @@ +function parent_project() { + [[ $PWD =~ ([a-z]+)/vendor ]] && echo " $match[1] " +} + +function get_color() { + index=$(( `date +%s` % 6 + 1)) + colors=( yellow green cyan blue red magenta ) + echo "%{$fg[${colors[$index]}]%}" +} + +PROMPT='$(get_color)࿓ %{$fg_bold[blue]%}$(parent_project)%{$fg[cyan]%}%c %{$fg_bold[magenta]%}$(git_prompt_info)%{$reset_color%}' + +ZSH_THEME_GIT_PROMPT_PREFIX="[%{$fg[green]%}" +ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" +ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[magenta]%}] %{$fg[red]%}♡ " +ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[magenta]%}] %{$fg[red]%}♥ " + +TMOUT=10 + +TRAPALRM() { + zle reset-prompt +}