mirror of
https://github.com/cheat/cheat.git
synced 2024-11-14 08:01:09 +01:00
Append virtualenvwrapper commands
This commit is contained in:
parent
c0d755e102
commit
c0585ee55c
1 changed files with 23 additions and 0 deletions
|
@ -13,3 +13,26 @@ source /path/to/project/env_name/bin/activate
|
|||
# Quit environment
|
||||
deactivate
|
||||
|
||||
|
||||
# virtualenvwrapper (wrapper for virtualenv)
|
||||
# installation
|
||||
pip install --user virtualenvwrapper
|
||||
# configuration
|
||||
# add in ~/.bashrc or similar
|
||||
export WORKON_HOME=~/.virtualenvs
|
||||
mkdir -p $WORKON_HOME
|
||||
source ~/.local/bin/virtualenvwrapper.sh
|
||||
|
||||
# Create new environmment (with virtualenvwrapper)
|
||||
mkvirtualenv env_name
|
||||
# new environmment is stored in ~/.virtualenvs
|
||||
|
||||
# Activate environmment (with virtualenvwrapper)
|
||||
workon env_name
|
||||
|
||||
# Quit environmment (with virtualenvwrapper)
|
||||
deactivate
|
||||
|
||||
# Delete environmment (with virtualenvwrapper)
|
||||
rmvirtualenv env_name
|
||||
|
||||
|
|
Loading…
Reference in a new issue