Skip to content

Instantly share code, notes, and snippets.

@powellc
Last active February 10, 2016 17:21
Show Gist options
  • Save powellc/9e0fc6f2ffcf80fccdb9 to your computer and use it in GitHub Desktop.
Save powellc/9e0fc6f2ffcf80fccdb9 to your computer and use it in GitHub Desktop.
A bash configuration file
#!/usr/bin/env bash
# Path to the bash it configuration
export BASH_IT="/home/powellc/.bash_it"
# Lock and Load a custom theme file
# location /.bash_it/themes/
export BASH_IT_THEME='powerline'
# Your place for hosting Git repos. I use this for private repos.
export GIT_HOSTING='git@git.domain.com'
# Don't check mail when opening terminal.
unset MAILCHECK
# Change this to your console based IRC client of choice.
export IRC_CLIENT='irssi'
# Set this to the command you use for todo.txt-cli
export TODO="t"
# Set this to false to turn off version control status checking within the prompt for all themes
export SCM_CHECK=true
# Set vcprompt executable path for scm advance info in prompt (demula theme)
# https://github.com/xvzf/vcprompt
#export VCPROMPT_EXECUTABLE=~/.vcprompt/bin/vcprompt
# Load Bash It
source $BASH_IT/bash_it.sh
source ~/.autoenv/activate.sh
djsr() { venv/bin/python manage.py runserver_plus $1; }
djsh() { venv/bin/python manage.py shell_plus $1; }
djt() { find apps/ -name '*.py' | entr ./venv/bin/python manage.py test; }
djv() { find apps/ -name '*.py' | entr ./venv/bin/python manage.py validate; }
dj() { venv/bin/python manage.py $1; }
gtag() { git tag $1 && git push origin --tags; }
gdtag() { git tag -d $1 && git push origin :refs/tags/$1; }
jrnlgo() { cd ~/diary/ && git add * && git commit -m 'Automated journal backup' && git push; }
pwp() { pass show -c personal/$1; }
pwf() { pass show -c fiveq/$1; }
newpass() { xkcdpass --numwords=4 | xclip -sel clip; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment