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 Side-by-side Diff
custom/themes/mj.zsh-theme
... | ... | @@ -15,7 +15,7 @@ GIT_DIRTY_COLOR=$FG[133] |
15 | 15 | GIT_CLEAN_COLOR=$FG[118] |
16 | 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 | 20 | #RPS1="${return_code}" |
21 | 21 |
dotfiles/zshrc.sh
... | ... | @@ -24,6 +24,13 @@ ZSH_CUSTOM=$ZCFG/custom |
24 | 24 | |
25 | 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 | 34 | # User configuration |
28 | 35 | export PATH=$HOME/bin:/usr/local/bin:$PATH |
29 | 36 | # export MANPATH="/usr/local/man:$MANPATH" |
templates/zshrc.sh
... | ... | @@ -15,14 +15,9 @@ export PATH=$HOME/bin:/usr/local/bin:$PATH |
15 | 15 | # export MANPATH="/usr/local/man:$MANPATH" |
16 | 16 | |
17 | 17 | plugins=( |
18 | - pip python virtualenv virtualenvwrapper | |
19 | 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 | 21 | # Aliases |
27 | 22 | if [ -f $ZCFG/dotfiles/zshrc.sh ]; then |
28 | 23 | . $ZCFG/dotfiles/zshrc.sh |