Permalink
Browse files

Merge pull request #1223 from bigjust/master

Basic Virtualenv plugin
  • Loading branch information...
robbyrussell committed Apr 24, 2013
2 parents de1f803 + 0b2da8f commit b0f8683ffac7b6188cbbb9678c608ed9ab85a4b6
Showing with 9 additions and 0 deletions.
  1. +9 −0 plugins/virtualenv/virtualenv.plugin.zsh
@@ -0,0 +1,9 @@
+function virtualenv_prompt_info(){
+ local virtualenv_path="$VIRTUAL_ENV"
+ if [[ -n $virtualenv_path ]]; then
+ local virtualenv_name=`basename $virtualenv_path`
+ printf "%s[%s] " "%{${fg[yellow]}%}" $virtualenv_name
+ fi
+}
+
+export VIRTUAL_ENV_DISABLE_PROMPT=1

0 comments on commit b0f8683

Please sign in to comment.