Skip to content

Commit

Permalink
Add virtualenv
Browse files Browse the repository at this point in the history
  • Loading branch information
Geeber committed Jun 30, 2014
1 parent 3227280 commit 64cfc43
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions manifest.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@
# langauges
package 'rbenv', :dotfiles => true, :when => ( File.directory?(ENV['HOME'] + '/.rbenv') )
package 'java', :into => 'util/java'
package 'virtualenv', :dotfiles => true

23 changes: 23 additions & 0 deletions virtualenv/zsh/profile.d/virtualenv.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# ZSH login configuration for virtualenv.
#
# This requires virtualenv to be present; to set it up:
# easy_install pip
# pip install virtualenv
# pip install virtualenvwrapper

# virtualenv
export WORKON_HOME=$HOME/.virtualenvs
source /usr/local/bin/virtualenvwrapper.sh

# virtualenv aliases
# http://blog.doughellmann.com/2010/01/virtualenvwrapper-tips-and-tricks.html
alias v='workon'
alias v.deactivate='deactivate'
alias v.mk='mkvirtualenv --no-site-packages'
alias v.mk_withsitepackages='mkvirtualenv'
alias v.rm='rmvirtualenv'
alias v.switch='workon'
alias v.add2virtualenv='add2virtualenv'
alias v.cdsitepackages='cdsitepackages'
alias v.cd='cdvirtualenv'
alias v.lssitepackages='lssitepackages'

0 comments on commit 64cfc43

Please sign in to comment.