Commit 176ffff3b21a8c07c1f636076aac00978a592dff
1 parent
79c62734ff
Exists in
master
and in
2 other branches
ADD THEME "mj"
Showing 2 changed files with 33 additions and 1 deletions Side-by-side Diff
repos/robbyrussell/oh-my-zsh/themes/mj.zsh-theme
... | ... | @@ -0,0 +1,32 @@ |
1 | +#!/usr/bin/env zsh | |
2 | +#local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})" | |
3 | + | |
4 | +if [ $UID -eq 0 ]; then CARETCOLOR="red"; else CARETCOLOR="blue"; fi | |
5 | + | |
6 | +setopt promptsubst | |
7 | + | |
8 | +autoload -U add-zsh-hook | |
9 | + | |
10 | +PROMPT_SUCCESS_COLOR=$FG[117] | |
11 | +PROMPT_FAILURE_COLOR=$FG[124] | |
12 | +PROMPT_VCS_INFO_COLOR=$FG[242] | |
13 | +PROMPT_PROMPT=$FG[077] | |
14 | +GIT_DIRTY_COLOR=$FG[133] | |
15 | +GIT_CLEAN_COLOR=$FG[118] | |
16 | +GIT_PROMPT_INFO=$FG[012] | |
17 | + | |
18 | +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%} ' | |
19 | + | |
20 | +#RPS1="${return_code}" | |
21 | + | |
22 | +ZSH_THEME_GIT_PROMPT_PREFIX="(" | |
23 | +ZSH_THEME_GIT_PROMPT_SUFFIX="%{$GIT_PROMPT_INFO%})" | |
24 | +ZSH_THEME_GIT_PROMPT_DIRTY=" %{$GIT_DIRTY_COLOR%}✘" | |
25 | +ZSH_THEME_GIT_PROMPT_CLEAN=" %{$GIT_CLEAN_COLOR%}✔" | |
26 | + | |
27 | +ZSH_THEME_GIT_PROMPT_ADDED="%{$FG[082]%}✚%{$reset_color%}" | |
28 | +ZSH_THEME_GIT_PROMPT_MODIFIED="%{$FG[166]%}✹%{$reset_color%}" | |
29 | +ZSH_THEME_GIT_PROMPT_DELETED="%{$FG[160]%}✖%{$reset_color%}" | |
30 | +ZSH_THEME_GIT_PROMPT_RENAMED="%{$FG[220]%}➜%{$reset_color%}" | |
31 | +ZSH_THEME_GIT_PROMPT_UNMERGED="%{$FG[082]%}═%{$reset_color%}" | |
32 | +ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$FG[190]%}✭%{$reset_color%}" |
templates/zshrc.sh