Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
3d41804f
Commit
3d41804f
authored
Jan 24, 2014
by
Christoph Heer
Browse files
Improve virtualenv prompt in steeef theme
parent
d4850441
Changes
1
Hide whitespace changes
Inline
Side-by-side
themes/steeef.zsh-theme
View file @
3d41804f
...
@@ -8,7 +8,7 @@
...
@@ -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 {
...
@@ -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 {
...
@@ -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)
$ '
$ '
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment