From 176ffff3b21a8c07c1f636076aac00978a592dff Mon Sep 17 00:00:00 2001 From: mj Date: Tue, 31 Mar 2015 21:34:23 +0200 Subject: [PATCH] ADD THEME "mj" --- repos/robbyrussell/oh-my-zsh/themes/mj.zsh-theme | 32 ++++++++++++++++++++++++ templates/zshrc.sh | 2 +- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 repos/robbyrussell/oh-my-zsh/themes/mj.zsh-theme diff --git a/repos/robbyrussell/oh-my-zsh/themes/mj.zsh-theme b/repos/robbyrussell/oh-my-zsh/themes/mj.zsh-theme new file mode 100644 index 0000000..a2ff752 --- /dev/null +++ b/repos/robbyrussell/oh-my-zsh/themes/mj.zsh-theme @@ -0,0 +1,32 @@ +#!/usr/bin/env zsh +#local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})" + +if [ $UID -eq 0 ]; then CARETCOLOR="red"; else CARETCOLOR="blue"; fi + +setopt promptsubst + +autoload -U add-zsh-hook + +PROMPT_SUCCESS_COLOR=$FG[117] +PROMPT_FAILURE_COLOR=$FG[124] +PROMPT_VCS_INFO_COLOR=$FG[242] +PROMPT_PROMPT=$FG[077] +GIT_DIRTY_COLOR=$FG[133] +GIT_CLEAN_COLOR=$FG[118] +GIT_PROMPT_INFO=$FG[012] + +PROMPT='%{${fg_bold[$CARETCOLOR]}%}%m%{${reset_color}%} %{$PROMPT_SUCCESS_COLOR%}%~%{$reset_color%} %{$GIT_PROMPT_INFO%}$(git_prompt_info)%{$GIT_DIRTY_COLOR%}$(git_prompt_status) %{$reset_color%}%{$PROMPT_PROMPT%}ᐅ%{$reset_color%} ' + +#RPS1="${return_code}" + +ZSH_THEME_GIT_PROMPT_PREFIX="(" +ZSH_THEME_GIT_PROMPT_SUFFIX="%{$GIT_PROMPT_INFO%})" +ZSH_THEME_GIT_PROMPT_DIRTY=" %{$GIT_DIRTY_COLOR%}✘" +ZSH_THEME_GIT_PROMPT_CLEAN=" %{$GIT_CLEAN_COLOR%}✔" + +ZSH_THEME_GIT_PROMPT_ADDED="%{$FG[082]%}✚%{$reset_color%}" +ZSH_THEME_GIT_PROMPT_MODIFIED="%{$FG[166]%}✹%{$reset_color%}" +ZSH_THEME_GIT_PROMPT_DELETED="%{$FG[160]%}✖%{$reset_color%}" +ZSH_THEME_GIT_PROMPT_RENAMED="%{$FG[220]%}➜%{$reset_color%}" +ZSH_THEME_GIT_PROMPT_UNMERGED="%{$FG[082]%}═%{$reset_color%}" +ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$FG[190]%}✭%{$reset_color%}" diff --git a/templates/zshrc.sh b/templates/zshrc.sh index 8b31f89..9d9cc69 100644 --- a/templates/zshrc.sh +++ b/templates/zshrc.sh @@ -12,7 +12,7 @@ export LANG=en_US.UTF-8 export ARCHFLAGS="-arch x86_64" # Themes are in (...)/oh-my-zsh/themes/ or "random" -ZSH_THEME="muse" +ZSH_THEME="mj" CASE_SENSITIVE="true" DISABLE_AUTO_UPDATE="true" -- 2.0.0