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
alias runserver="python manage.py runserver_plus" | |
alias sp="python manage.py shell_plus" | |
alias manage="./manage.py" | |
alias syncdb="manage syncdb --migrate" | |
alias dif="git diff" | |
alias add="git add --all" | |
alias gs="git status" | |
alias commit="git commit -m" | |
alias gl="git log --graph --decorate --all" | |
alias glp="gl -p" | |
alias undo="git reset --soft HEAD^1" | |
alias unstage="git reset HEAD" | |
alias gck="git checkout" | |
runcoverage() { | |
reset | |
if [ -z $1 ] | |
then | |
coverage run --source='.' manage.py test [app] && | |
else | |
coverage run --source='.' manage.py test $1 && | |
fi | |
coverage html --omit="*migrations*,*__init__*" | |
echo "sleeping, press enter to skip" | |
read -t 60 | |
runcoverage $1 | |
} | |
function push { | |
echo "git push origin $(git rev-parse --symbolic-full-name --abbrev-ref HEAD)" | |
git push origin $(git rev-parse --symbolic-full-name --abbrev-ref HEAD) | |
} | |
function pull { | |
echo "git pull origin $(git rev-parse --symbolic-full-name --abbrev-ref HEAD)" | |
git pull origin $(git rev-parse --symbolic-full-name --abbrev-ref HEAD) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment