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 Inline Diff
repos/robbyrussell/oh-my-zsh/themes/mj.zsh-theme
| File was created | 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%}" | ||
| 33 |
templates/zshrc.sh
| 1 | #@IgnoreInspection AddShebang | 1 | #@IgnoreInspection AddShebang |
| 2 | # ENVIRONMENT: | 2 | # ENVIRONMENT: |
| 3 | export GJ_ENV=local_aptproxy | 3 | export GJ_ENV=local_aptproxy |
| 4 | 4 | ||
| 5 | export ZCFG=~/.config/zsh-config | 5 | export ZCFG=~/.config/zsh-config |
| 6 | # Path to your oh-my-zsh installation. | 6 | # Path to your oh-my-zsh installation. |
| 7 | export ZSH=$ZCFG/packages/oh-my-zsh | 7 | export ZSH=$ZCFG/packages/oh-my-zsh |
| 8 | 8 | ||
| 9 | export LANG=en_US.UTF-8 | 9 | export LANG=en_US.UTF-8 |
| 10 | 10 | ||
| 11 | # Compilation flags | 11 | # Compilation flags |
| 12 | export ARCHFLAGS="-arch x86_64" | 12 | export ARCHFLAGS="-arch x86_64" |
| 13 | 13 | ||
| 14 | # Themes are in (...)/oh-my-zsh/themes/ or "random" | 14 | # Themes are in (...)/oh-my-zsh/themes/ or "random" |
| 15 | ZSH_THEME="muse" | 15 | ZSH_THEME="mj" |
| 16 | 16 | ||
| 17 | CASE_SENSITIVE="true" | 17 | CASE_SENSITIVE="true" |
| 18 | DISABLE_AUTO_UPDATE="true" | 18 | DISABLE_AUTO_UPDATE="true" |
| 19 | #DISABLE_AUTO_TITLE="true" | 19 | #DISABLE_AUTO_TITLE="true" |
| 20 | ENABLE_CORRECTION="false" | 20 | ENABLE_CORRECTION="false" |
| 21 | COMPLETION_WAITING_DOTS="true" | 21 | COMPLETION_WAITING_DOTS="true" |
| 22 | DISABLE_UNTRACKED_FILES_DIRTY="true" | 22 | DISABLE_UNTRACKED_FILES_DIRTY="true" |
| 23 | HIST_STAMPS="dd.mm.yyyy" | 23 | HIST_STAMPS="dd.mm.yyyy" |
| 24 | ZSH_CUSTOM=ZCFG/custom | 24 | ZSH_CUSTOM=ZCFG/custom |
| 25 | 25 | ||
| 26 | plugins=(command-not-found common-aliases debian dirhistory git history history-substring-search systemadmin zsh_reload | 26 | plugins=(command-not-found common-aliases debian dirhistory git history history-substring-search systemadmin zsh_reload |
| 27 | #pip python virtualenv virtualenvwrapper | 27 | #pip python virtualenv virtualenvwrapper |
| 28 | #meteor node npm | 28 | #meteor node npm |
| 29 | ) | 29 | ) |
| 30 | 30 | ||
| 31 | # User configuration | 31 | # User configuration |
| 32 | export PATH=$HOME/bin:/usr/local/bin:$PATH | 32 | export PATH=$HOME/bin:/usr/local/bin:$PATH |
| 33 | # export MANPATH="/usr/local/man:$MANPATH" | 33 | # export MANPATH="/usr/local/man:$MANPATH" |
| 34 | 34 | ||
| 35 | # Environment | 35 | # Environment |
| 36 | if [ -f $ZCFG/dotfiles/environment.sh ]; then | 36 | if [ -f $ZCFG/dotfiles/environment.sh ]; then |
| 37 | . $ZCFG/dotfiles/environment.sh | 37 | . $ZCFG/dotfiles/environment.sh |
| 38 | fi | 38 | fi |
| 39 | 39 | ||
| 40 | export HISTFILESIZE= | 40 | export HISTFILESIZE= |
| 41 | export HISTSIZE= | 41 | export HISTSIZE= |
| 42 | export HISTFILE=~/.history | 42 | export HISTFILE=~/.history |
| 43 | 43 | ||
| 44 | source $ZSH/oh-my-zsh.sh | 44 | source $ZSH/oh-my-zsh.sh |
| 45 | 45 | ||
| 46 | 46 | ||
| 47 | # Aliases | 47 | # Aliases |
| 48 | if [ -f $ZCFG/templates/bash_aliases.sh ]; then | 48 | if [ -f $ZCFG/templates/bash_aliases.sh ]; then |
| 49 | . $ZCFG/templates/bash_aliases.sh | 49 | . $ZCFG/templates/bash_aliases.sh |
| 50 | fi | 50 | fi |
| 51 | 51 |