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
ebfc9042
Commit
ebfc9042
authored
Jun 25, 2013
by
Gong Hao
Browse files
add virtualenv prompt support for agnoster theme
parent
78dba754
Changes
1
Hide whitespace changes
Inline
Side-by-side
themes/agnoster.zsh-theme
View file @
ebfc9042
...
...
@@ -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