Guest User

Untitled

a guest
Oct 22nd, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.13 KB | None | 0 0
  1. export PYENV_ROOT="$HOME/.pyenv"
  2. export PATH="$PYENV_ROOT/bin:$PATH"
  3. export WORKON_HOME=~/.envs
  4. export PROJECT_HOME=~/Documentos/pythonprojects
  5. export PATH=$HOME/.bin:$PATH
  6. eval "$(pyenv init -)"
  7. pyenv virtualenvwrapper_lazy
  8.  
  9. alias deploygithub='git push -u --force origin master'
  10. alias deployheroku='git push -u --force heroku master'
  11. alias acertavolume='pkill -RTMIN+1 i3blocks'
  12.  
  13. # Criar aliases no script postactivate do virtualenv
  14. echo "alias manage=\"$VIRTUAL_ENV/bin/python $(pwd)/manage.py\"" >> $VIRTUAL_ENV/bin/postactivate
  15. echo "alias test=\"$VIRTUAL_ENV/bin/python $(pwd)/manage.py test\"" >> $VIRTUAL_ENV/bin/postactivate
  16. echo "alias startapp=\"$VIRTUAL_ENV/bin/python $(pwd)/manage.py startapp\"" >> $VIRTUAL_ENV/bin/postactivate
  17. echo "alias runserver=\"$VIRTUAL_ENV/bin/python $(pwd)/manage.py runserver\"" >> $VIRTUAL_ENV/bin/postactivate
  18. echo "alias testm=\"$VIRTUAL_ENV/bin/python $(pwd)/manage.py test --nomigrations\"" >> $VIRTUAL_ENV/bin/postactivate
  19. echo "alias makemigrations=\"$VIRTUAL_ENV/bin/python $(pwd)/manage.py makemigrations\"" >> $VIRTUAL_ENV/bin/postactivate
  20. echo "alias migrate=\"$VIRTUAL_ENV/bin/python $(pwd)/manage.py migrate\"" >> $VIRTUAL_ENV/bin/postactivate
  21. echo "alias shell=\"$VIRTUAL_ENV/bin/python $(pwd)/manage.py shell\"" >> $VIRTUAL_ENV/bin/postactivate
  22. echo "alias shellp=\"$VIRTUAL_ENV/bin/python $(pwd)/manage.py shell_plus\"" >> $VIRTUAL_ENV/bin/postactivate
  23. echo "alias createsuperuser=\"$VIRTUAL_ENV/bin/python $(pwd)/manage.py createsuperuser\"" >> $VIRTUAL_ENV/bin/postactivate
  24.  
  25. # Destruir aliases no script postdeactivate do virtualenv
  26. echo "unalias manage" >> $VIRTUAL_ENV/bin/postdeactivate
  27. echo "unalias test" >> $VIRTUAL_ENV/bin/postdeactivate
  28. echo "unalias startapp" >> $VIRTUAL_ENV/bin/postdeactivate
  29. echo "unalias runserver" >> $VIRTUAL_ENV/bin/postdeactivate
  30. echo "unalias testm" >> $VIRTUAL_ENV/bin/postdeactivate
  31. echo "unalias makemigrations" >> $VIRTUAL_ENV/bin/postdeactivate
  32. echo "unalias migrate" >> $VIRTUAL_ENV/bin/postdeactivate
  33. echo "unalias shell" >> $VIRTUAL_ENV/bin/postdeactivate
  34. echo "unalias shellp" >> $VIRTUAL_ENV/bin/postdeactivate
  35. echo "unalias createsuperuser" >> $VIRTUAL_ENV/bin/postdeactivate
Add Comment
Please, Sign In to add comment