Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
d943d23a
Commit
d943d23a
authored
Mar 13, 2014
by
Robby Russell
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2466 from jarus/steeef-virtualenv-fix
Improve virtualenv prompt in steeef theme
parents
07c2bdf4
3d41804f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
steeef.zsh-theme
themes/steeef.zsh-theme
+4
-4
No files found.
themes/steeef.zsh-theme
View file @
d943d23a
...
@@ -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