Skip to content

Instantly share code, notes, and snippets.

@kylieCat
Last active November 11, 2016 05:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kylieCat/0ee94c142d4392b5d2b3 to your computer and use it in GitHub Desktop.
Save kylieCat/0ee94c142d4392b5d2b3 to your computer and use it in GitHub Desktop.
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