Commit ac429f7a9bd9d0a87e2ee6d73b8936a706d841b2
1 parent
48e7d0f23a
Exists in
master
and in
2 other branches
.zshrc.sh / mj.zsh-theme: virtualenv / virtualenvwrapper
Showing 3 changed files with 8 additions and 6 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 | 17 | ||
18 | PROMPT='%{$MNCOLOR%}%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%} ' | 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%} ' |
19 | 19 | ||
20 | #RPS1="${return_code}" | 20 | #RPS1="${return_code}" |
21 | 21 | ||
22 | ZSH_THEME_GIT_PROMPT_PREFIX="(" | 22 | ZSH_THEME_GIT_PROMPT_PREFIX="(" |
23 | ZSH_THEME_GIT_PROMPT_SUFFIX="%{$GIT_PROMPT_INFO%})" | 23 | ZSH_THEME_GIT_PROMPT_SUFFIX="%{$GIT_PROMPT_INFO%})" |
24 | ZSH_THEME_GIT_PROMPT_DIRTY=" %{$GIT_DIRTY_COLOR%}✘" | 24 | ZSH_THEME_GIT_PROMPT_DIRTY=" %{$GIT_DIRTY_COLOR%}✘" |
25 | ZSH_THEME_GIT_PROMPT_CLEAN=" %{$GIT_CLEAN_COLOR%}✔" | 25 | ZSH_THEME_GIT_PROMPT_CLEAN=" %{$GIT_CLEAN_COLOR%}✔" |
26 | 26 | ||
27 | ZSH_THEME_GIT_PROMPT_ADDED="%{$FG[082]%}✚%{$reset_color%}" | 27 | ZSH_THEME_GIT_PROMPT_ADDED="%{$FG[082]%}✚%{$reset_color%}" |
28 | ZSH_THEME_GIT_PROMPT_MODIFIED="%{$FG[166]%}✹%{$reset_color%}" | 28 | ZSH_THEME_GIT_PROMPT_MODIFIED="%{$FG[166]%}✹%{$reset_color%}" |
29 | ZSH_THEME_GIT_PROMPT_DELETED="%{$FG[160]%}✖%{$reset_color%}" | 29 | ZSH_THEME_GIT_PROMPT_DELETED="%{$FG[160]%}✖%{$reset_color%}" |
30 | ZSH_THEME_GIT_PROMPT_RENAMED="%{$FG[220]%}➜%{$reset_color%}" | 30 | ZSH_THEME_GIT_PROMPT_RENAMED="%{$FG[220]%}➜%{$reset_color%}" |
31 | ZSH_THEME_GIT_PROMPT_UNMERGED="%{$FG[082]%}═%{$reset_color%}" | 31 | ZSH_THEME_GIT_PROMPT_UNMERGED="%{$FG[082]%}═%{$reset_color%}" |
32 | ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$FG[190]%}✭%{$reset_color%}" | 32 | ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$FG[190]%}✭%{$reset_color%}" |
33 | 33 |
dotfiles/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 | # Path to your oh-my-zsh installation. | 5 | # Path to your oh-my-zsh installation. |
6 | export ZSH=$ZCFG/packages/oh-my-zsh | 6 | export ZSH=$ZCFG/packages/oh-my-zsh |
7 | 7 | ||
8 | export LANG=en_US.UTF-8 | 8 | export LANG=en_US.UTF-8 |
9 | 9 | ||
10 | # Compilation flags | 10 | # Compilation flags |
11 | export ARCHFLAGS="-arch x86_64" | 11 | export ARCHFLAGS="-arch x86_64" |
12 | 12 | ||
13 | # Themes are in (...)/oh-my-zsh/themes/ or "random" | 13 | # Themes are in (...)/oh-my-zsh/themes/ or "random" |
14 | ZSH_THEME="mj" | 14 | ZSH_THEME="mj" |
15 | 15 | ||
16 | CASE_SENSITIVE="true" | 16 | CASE_SENSITIVE="true" |
17 | DISABLE_AUTO_UPDATE="true" | 17 | DISABLE_AUTO_UPDATE="true" |
18 | #DISABLE_AUTO_TITLE="true" | 18 | #DISABLE_AUTO_TITLE="true" |
19 | ENABLE_CORRECTION="false" | 19 | ENABLE_CORRECTION="false" |
20 | COMPLETION_WAITING_DOTS="true" | 20 | COMPLETION_WAITING_DOTS="true" |
21 | DISABLE_UNTRACKED_FILES_DIRTY="true" | 21 | DISABLE_UNTRACKED_FILES_DIRTY="true" |
22 | HIST_STAMPS="dd.mm.yyyy" | 22 | HIST_STAMPS="dd.mm.yyyy" |
23 | ZSH_CUSTOM=$ZCFG/custom | 23 | ZSH_CUSTOM=$ZCFG/custom |
24 | 24 | ||
25 | plugins+=(command-not-found common-aliases debian dirhistory git history history-substring-search systemadmin zsh_reload) | 25 | plugins+=(command-not-found common-aliases debian dirhistory git history history-substring-search systemadmin zsh_reload) |
26 | 26 | ||
27 | # virtualenvwrapper | ||
28 | if [ -f /usr/local/bin/virtualenvwrapper.sh ]; then | ||
29 | export WORKON_HOME=$HOME/.virtualenvs | ||
30 | source /usr/local/bin/virtualenvwrapper.sh | ||
31 | plugins+=(pip python virtualenv virtualenvwrapper) | ||
32 | fi | ||
33 | |||
27 | # User configuration | 34 | # User configuration |
28 | export PATH=$HOME/bin:/usr/local/bin:$PATH | 35 | export PATH=$HOME/bin:/usr/local/bin:$PATH |
29 | # export MANPATH="/usr/local/man:$MANPATH" | 36 | # export MANPATH="/usr/local/man:$MANPATH" |
30 | 37 | ||
31 | # Environment | 38 | # Environment |
32 | if [ -f $ZCFG/dotfiles/environment.sh ]; then | 39 | if [ -f $ZCFG/dotfiles/environment.sh ]; then |
33 | . $ZCFG/dotfiles/environment.sh | 40 | . $ZCFG/dotfiles/environment.sh |
34 | fi | 41 | fi |
35 | 42 | ||
36 | # History | 43 | # History |
37 | export HISTFILESIZE= | 44 | export HISTFILESIZE= |
38 | export HISTSIZE= | 45 | export HISTSIZE= |
39 | export HISTFILE=~/.history | 46 | export HISTFILE=~/.history |
40 | 47 | ||
41 | # Apply | 48 | # Apply |
42 | source $ZSH/oh-my-zsh.sh | 49 | source $ZSH/oh-my-zsh.sh |
43 | 50 | ||
44 | # Aliases | 51 | # Aliases |
45 | if [ -f $ZCFG/templates/bash_aliases.sh ]; then | 52 | if [ -f $ZCFG/templates/bash_aliases.sh ]; then |
46 | . $ZCFG/templates/bash_aliases.sh | 53 | . $ZCFG/templates/bash_aliases.sh |
47 | fi | 54 | fi |
templates/zshrc.sh
1 | #@IgnoreInspection AddShebang | 1 | #@IgnoreInspection AddShebang |
2 | 2 | ||
3 | export ZCFG=$HOME/.config/zsh-config | 3 | export ZCFG=$HOME/.config/zsh-config |
4 | 4 | ||
5 | # ENVIRONMENT: | 5 | # ENVIRONMENT: |
6 | export GJ_ENV=local_aptproxy | 6 | export GJ_ENV=local_aptproxy |
7 | 7 | ||
8 | export LANG=en_US.UTF-8 | 8 | export LANG=en_US.UTF-8 |
9 | 9 | ||
10 | # Compilation flags | 10 | # Compilation flags |
11 | export ARCHFLAGS="-arch x86_64" | 11 | export ARCHFLAGS="-arch x86_64" |
12 | 12 | ||
13 | # User configuration | 13 | # User configuration |
14 | export PATH=$HOME/bin:/usr/local/bin:$PATH | 14 | export PATH=$HOME/bin:/usr/local/bin:$PATH |
15 | # export MANPATH="/usr/local/man:$MANPATH" | 15 | # export MANPATH="/usr/local/man:$MANPATH" |
16 | 16 | ||
17 | plugins=( | 17 | plugins=( |
18 | pip python virtualenv virtualenvwrapper | ||
19 | #meteor node npm | 18 | #meteor node npm |
20 | ) | 19 | ) |
21 | 20 | ||
22 | # virtualenvwrapper: | ||
23 | export WORKON_HOME=$HOME/.virtualenvs | ||
24 | source /usr/local/bin/virtualenvwrapper.sh | ||
25 | |||
26 | # Aliases | 21 | # Aliases |
27 | if [ -f $ZCFG/dotfiles/zshrc.sh ]; then | 22 | if [ -f $ZCFG/dotfiles/zshrc.sh ]; then |
28 | . $ZCFG/dotfiles/zshrc.sh | 23 | . $ZCFG/dotfiles/zshrc.sh |
29 | fi | 24 | fi |