Skip to content

Instantly share code, notes, and snippets.

@roderik
Created June 21, 2010 11:34
Show Gist options
  • Save roderik/446730 to your computer and use it in GitHub Desktop.
Save roderik/446730 to your computer and use it in GitHub Desktop.
# System-wide .bashrc file for interactive bash(1) shells.
if [ -z "$PS1" ]; then
return
fi
if [ -f /opt/local/etc/bash_completion ]; then
. /opt/local/etc/bash_completion
fi
#export GIT_PS1_SHOWDIRTYSTATE=true
#export GIT_PS1_SHOWUNTRACKEDFILES=true
#export GIT_PS1_SHOWSTASHSTATE=true
if [[ ${EUID} == 0 ]] ; then
PS1='\[\033[0;37m\][\t\[\033[0;37m\]]\[\033[0;33m\][\[\033[1;36m\]\u\[\033[1;36m\]@\[\033[1;36m\]\h \[\033[1;31m\]\w\[\033[0;33m\]]\[\033[1;31m\]$(__git_ps1 "(%s)")\[\033[0;37m\]\\$ \[\033[00m\]'
else
PS1='\[\033[0;37m\][\t\[\033[0;37m\]]\[\033[0;33m\][\[\033[1;36m\]\u\[\033[1;36m\]@\[\033[1;36m\]\h \[\033[1;32m\]\w\[\033[0;33m\]]\[\033[1;31m\]$(__git_ps1 "(%s)")\[\033[0;37m\]\\$ \[\033[00m\]'
fi
shopt -s cdspell
shopt -s extglob
shopt -s dotglob
shopt -s checkwinsize
shopt -s hostcomplete
shopt -s histappend
export HISTCONTROL=ignoreboth
export HISTCONTROL=ignoredups
export GREP_OPTIONS="--colour=auto"
export PROMPT_COMMAND='history -a'
export PATH="/opt/local/bin:/opt/local/lib/mysql5/bin:/opt/local/lib/postgresql84/bin:/opt/local/apache2/bin:/usr/local/bin:/usr/local/sbin:$PATH"
export CLICOLOR=1
export LSCOLORS=ExFxCxDxBxegedabagacad
export TZ='Europe/Brussels'
#alias vim="mate"
alias port="sudo port"
alias psqlrestart="sudo /opt/local/etc/LaunchDaemons/org.macports.postgresql84-server/postgresql84-server.wrapper restart"
alias console="/Applications/Utilities/Console.app/Contents/MacOS/Console"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment