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
Oh My Zsh
Commits
84b9598e
Commit
84b9598e
authored
Jun 25, 2013
by
Robby Russell
Browse files
Merge pull request #1909 from gonghao/master
add virtualenv prompt support for agnoster theme
parents
c8812114
ebfc9042
Changes
1
Hide whitespace changes
Inline
Side-by-side
themes/agnoster.zsh-theme
View file @
84b9598e
...
...
@@ -134,6 +134,14 @@ prompt_dir() {
prompt_segment blue black
'%~'
}
# Virtualenv: current working virtualenv
prompt_virtualenv
()
{
local
virtualenv_path
=
"
$VIRTUAL_ENV
"
if
[[
-n
$virtualenv_path
]]
;
then
prompt_segment blue black
"(
`
basename
$virtualenv_path
`
)"
fi
}
# Status:
# - was there an error
# - am I root
...
...
@@ -152,6 +160,7 @@ prompt_status() {
build_prompt
()
{
RETVAL
=
$?
prompt_status
prompt_virtualenv
prompt_context
prompt_dir
prompt_git
...
...
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