Commit e3d463f7089a792e0e0b749c57c4e72b164d0c52
1 parent
ac429f7a9b
Exists in
master
and in
2 other branches
mj.zsh-theme: ZSH_THEME_VIRTUALENV_PREFIX ...
Showing 1 changed file with 2 additions and 0 deletions Inline Diff
custom/themes/mj.zsh-theme
| 1 | #!/usr/bin/env zsh | 1 | #!/usr/bin/env zsh |
| 2 | #local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})" | 2 | #local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})" |
| 3 | 3 | ||
| 4 | if [ $UID -eq 0 ]; then MNCOLOR=$FX[bold]$FG[088]; else MNCOLOR=$FX[bold]$FG[051]; fi | 4 | if [ $UID -eq 0 ]; then MNCOLOR=$FX[bold]$FG[088]; else MNCOLOR=$FX[bold]$FG[051]; fi |
| 5 | 5 | ||
| 6 | setopt promptsubst | 6 | setopt promptsubst |
| 7 | 7 | ||
| 8 | autoload -U add-zsh-hook | 8 | autoload -U add-zsh-hook |
| 9 | 9 | ||
| 10 | PROMPT_SUCCESS_COLOR=$FG[117] | 10 | PROMPT_SUCCESS_COLOR=$FG[117] |
| 11 | PROMPT_FAILURE_COLOR=$FG[124] | 11 | PROMPT_FAILURE_COLOR=$FG[124] |
| 12 | PROMPT_VCS_INFO_COLOR=$FG[242] | 12 | PROMPT_VCS_INFO_COLOR=$FG[242] |
| 13 | PROMPT_PROMPT=$FG[077] | 13 | PROMPT_PROMPT=$FG[077] |
| 14 | GIT_DIRTY_COLOR=$FG[133] | 14 | GIT_DIRTY_COLOR=$FG[133] |
| 15 | GIT_CLEAN_COLOR=$FG[118] | 15 | GIT_CLEAN_COLOR=$FG[118] |
| 16 | GIT_PROMPT_INFO=$FG[012] | 16 | GIT_PROMPT_INFO=$FG[012] |
| 17 | ZSH_THEME_VIRTUALENV_PREFIX="%{$FG[239]%} " | ||
| 18 | ZSH_THEME_VIRTUALENV_SUFFIX="%{$reset_color%}" | ||
| 17 | 19 | ||
| 18 | PROMPT='%{$MNCOLOR%}%m%{${reset_color}%}$(virtualenv_prompt_info) %{$PROMPT_SUCCESS_COLOR%}%~%{$reset_color%} %{$GIT_PROMPT_INFO%}$(git_prompt_info)%{$GIT_DIRTY_COLOR%}$(git_prompt_status) %{$reset_color%}%{$PROMPT_PROMPT%}ᐅ%{$reset_color%} ' | 20 | PROMPT='%{$MNCOLOR%}%m%{${reset_color}%}$(virtualenv_prompt_info) %{$PROMPT_SUCCESS_COLOR%}%~%{$reset_color%} %{$GIT_PROMPT_INFO%}$(git_prompt_info)%{$GIT_DIRTY_COLOR%}$(git_prompt_status) %{$reset_color%}%{$PROMPT_PROMPT%}ᐅ%{$reset_color%} ' |
| 19 | 21 | ||
| 20 | #RPS1="${return_code}" | 22 | #RPS1="${return_code}" |
| 21 | 23 | ||
| 22 | ZSH_THEME_GIT_PROMPT_PREFIX="(" | 24 | ZSH_THEME_GIT_PROMPT_PREFIX="(" |
| 23 | ZSH_THEME_GIT_PROMPT_SUFFIX="%{$GIT_PROMPT_INFO%})" | 25 | ZSH_THEME_GIT_PROMPT_SUFFIX="%{$GIT_PROMPT_INFO%})" |
| 24 | ZSH_THEME_GIT_PROMPT_DIRTY=" %{$GIT_DIRTY_COLOR%}✘" | 26 | ZSH_THEME_GIT_PROMPT_DIRTY=" %{$GIT_DIRTY_COLOR%}✘" |
| 25 | ZSH_THEME_GIT_PROMPT_CLEAN=" %{$GIT_CLEAN_COLOR%}✔" | 27 | ZSH_THEME_GIT_PROMPT_CLEAN=" %{$GIT_CLEAN_COLOR%}✔" |
| 26 | 28 | ||
| 27 | ZSH_THEME_GIT_PROMPT_ADDED="%{$FG[082]%}✚%{$reset_color%}" | 29 | ZSH_THEME_GIT_PROMPT_ADDED="%{$FG[082]%}✚%{$reset_color%}" |
| 28 | ZSH_THEME_GIT_PROMPT_MODIFIED="%{$FG[166]%}✹%{$reset_color%}" | 30 | ZSH_THEME_GIT_PROMPT_MODIFIED="%{$FG[166]%}✹%{$reset_color%}" |
| 29 | ZSH_THEME_GIT_PROMPT_DELETED="%{$FG[160]%}✖%{$reset_color%}" | 31 | ZSH_THEME_GIT_PROMPT_DELETED="%{$FG[160]%}✖%{$reset_color%}" |
| 30 | ZSH_THEME_GIT_PROMPT_RENAMED="%{$FG[220]%}➜%{$reset_color%}" | 32 | ZSH_THEME_GIT_PROMPT_RENAMED="%{$FG[220]%}➜%{$reset_color%}" |
| 31 | ZSH_THEME_GIT_PROMPT_UNMERGED="%{$FG[082]%}═%{$reset_color%}" | 33 | ZSH_THEME_GIT_PROMPT_UNMERGED="%{$FG[082]%}═%{$reset_color%}" |
| 32 | ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$FG[190]%}✭%{$reset_color%}" | 34 | ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$FG[190]%}✭%{$reset_color%}" |
| 33 | 35 |