Skip to content

Instantly share code, notes, and snippets.

@kylieCat

kylieCat/Shell Helpers.sh

Last active Nov 11, 2016
Embed
What would you like to do?
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