mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-19 21:41:07 +01:00
Improve virtualenv prompt in steeef theme
This commit is contained in:
parent
d485044169
commit
3d41804fbc
1 changed files with 4 additions and 4 deletions
|
@ -8,7 +8,7 @@
|
||||||
# http://briancarper.net/blog/570/git-info-in-your-zsh-prompt
|
# http://briancarper.net/blog/570/git-info-in-your-zsh-prompt
|
||||||
|
|
||||||
function virtualenv_info {
|
function virtualenv_info {
|
||||||
[ $VIRTUAL_ENV ] && echo '('`basename $VIRTUAL_ENV`') '
|
[ $VIRTUAL_ENV ] && echo '('$fg[blue]`basename $VIRTUAL_ENV`%{$reset_color%}') '
|
||||||
}
|
}
|
||||||
PR_GIT_UPDATE=1
|
PR_GIT_UPDATE=1
|
||||||
|
|
||||||
|
@ -87,7 +87,7 @@ function steeef_precmd {
|
||||||
else
|
else
|
||||||
FMT_BRANCH="(%{$turquoise%}%b%u%c${PR_RST})"
|
FMT_BRANCH="(%{$turquoise%}%b%u%c${PR_RST})"
|
||||||
fi
|
fi
|
||||||
zstyle ':vcs_info:*:prompt:*' formats "${FMT_BRANCH}"
|
zstyle ':vcs_info:*:prompt:*' formats "${FMT_BRANCH} "
|
||||||
|
|
||||||
vcs_info 'prompt'
|
vcs_info 'prompt'
|
||||||
PR_GIT_UPDATE=
|
PR_GIT_UPDATE=
|
||||||
|
@ -96,5 +96,5 @@ function steeef_precmd {
|
||||||
add-zsh-hook precmd steeef_precmd
|
add-zsh-hook precmd steeef_precmd
|
||||||
|
|
||||||
PROMPT=$'
|
PROMPT=$'
|
||||||
%{$purple%}%n%{$reset_color%} at %{$orange%}%m%{$reset_color%} in %{$limegreen%}%~%{$reset_color%} $vcs_info_msg_0_
|
%{$purple%}%n%{$reset_color%} at %{$orange%}%m%{$reset_color%} in %{$limegreen%}%~%{$reset_color%} $vcs_info_msg_0_$(virtualenv_info)%{$reset_color%}
|
||||||
$(virtualenv_info)$ '
|
$ '
|
||||||
|
|
Loading…
Reference in a new issue