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
function cover { coverage run --source='.' --omit='*.pyc. *.html' ./manage.py test $1;coverage html; } | |
export cover | |
alias coverall="coverage run --source='.' --omit='*.pyc. *.html' ./manage.py test account api group item;coverage html" | |
alias testall="./manage.py test account api channel group item moderation notifications payments" | |
# Git completion/colorful prompt | |
source ~/.git-completion.bash | |
source ~/.git-prompt.sh | |
PS1='[\u@\h \W$(__git_ps1 " (%s)")]\$ ' | |
GIT_PS1_SHOWDIRTYSTATE=1 | |
GIT_PS1_SHOWCOLORHINTS=1 | |
GIT_PS1_SHOWSTASHSTATE=1 | |
GIT_PS1_SHOWUPSTREAM="auto" | |
Color_Off="\[\033[0m\]" | |
Yellow="\[\033[0;33m\]" | |
PROMPT_COMMAND='__git_ps1 "${VIRTUAL_ENV:+[$Yellow`basename $VIRTUAL_ENV`$Color_Off]\n}" "\h:\W \u\\\$ " "[%s]\n"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment