Created
September 15, 2017 05:03
-
-
Save azengard/3100986f553c1e2b93bb9444c1a31236 to your computer and use it in GitHub Desktop.
Bashrc config for pyenv HB env config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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