Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am jimbeaudoin on github.
  • I am jimbeaudoin (https://keybase.io/jimbeaudoin) on keybase.
  • I have a public key whose fingerprint is 650D 65AE 79B4 0A38 5208 D1A8 0A56 AD26 57CB 670E

To claim this, I am signing this object:

@jimbeaudoin
jimbeaudoin / .bashrc
Created October 15, 2014 04:07
Show BranchName, DirtyState and UntrackedFiles for Git in Bash
# Download this File:
# https://github.com/git/git/blob/8976500cbbb13270398d3b3e07a17b8cc7bff43f/contrib/completion/git-prompt.sh
source ~/.git-prompt.sh
# Show Dirty(*,+) and Untracked(%) Files
GIT_PS1_SHOWDIRTYSTATE=1
GIT_PS1_SHOWUNTRACKEDFILES=1
# Update Bash Prompt
PS1='\u@\h:\W$(__git_ps1 " (%s)")\$ '
mike@rbci:~$ psql -U postgres
psql (9.0.3)
Type "help" for help.
postgres=# update pg_database set datallowconn = TRUE where datname = 'template0';
UPDATE 1
postgres=# \c template0
You are now connected to database "template0".
template0=# update pg_database set datistemplate = FALSE where datname = 'template1';
UPDATE 1