Skip to content

Instantly share code, notes, and snippets.

@azengard
Created September 15, 2017 05:03
Show Gist options
  • Save azengard/3100986f553c1e2b93bb9444c1a31236 to your computer and use it in GitHub Desktop.
Save azengard/3100986f553c1e2b93bb9444c1a31236 to your computer and use it in GitHub Desktop.
Bashrc config for pyenv HB env config
### PYENV
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
export WORKON_HOME=~/.ve
export PROJECT_HOME=~/workspace
eval "$(pyenv init -)"
pyenv virtualenvwrapper_lazy
### ALIAS PYTHON DJANGO VIRTUALENV
alias manage='python $(cat $(echo $VIRTUAL_ENV/.project))/manage.py'
alias test='python $(cat $(echo $VIRTUAL_ENV/.project))/manage.py test'
alias runserver='python $(cat $(echo $VIRTUAL_ENV/.project))/manage.py runserver'
alias makemigrations='python $(cat $(echo $VIRTUAL_ENV/.project))/manage.py makemigrations'
alias migrate='python $(cat $(echo $VIRTUAL_ENV/.project))/manage.py migrate'
alias shell='python $(cat $(echo $VIRTUAL_ENV/.project))/manage.py shell'
alias shellp='python $(cat $(echo $VIRTUAL_ENV/.project))/manage.py shell_plus'
alias createsuperuser='python $(cat $(echo $VIRTUAL_ENV/.project))/manage.py createsuperuser'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment