Skip to content

Instantly share code, notes, and snippets.

@andyyhope
Created June 10, 2014 08:19
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 andyyhope/3896c612a3f011398825 to your computer and use it in GitHub Desktop.
Save andyyhope/3896c612a3f011398825 to your computer and use it in GitHub Desktop.
# tell ls to be colourful
export CLICOLOR=1
export LSCOLORS=gxBxhxDxfxhxhxhxhxcxcx
# tell grep to highlight matches
export GREP_OPTIONS='--color=auto'
# alias
source ~/.git-prompt.sh
source ~/.git-completion.bash
alias ls='ls -FGalh'
alias __git_ps1="git branch 2>/dev/null | grep '*' | sed 's/* \(.*\)/(\1)/'"
# MacPorts Bash shell command completion
if [ -f /opt/local/etc/profile.d/bash_completion.sh ]; then
. /opt/local/etc/profile.d/bash_completion.sh
fi
# set custom bash prompt
export PS1="\n\[\033[1;34m\]\!\[\033[0m\] \[\033[1;35m\]\u\[\033[0m\] : \[\033[1;35m\]\W\[\033[0m\] : \[\033[0;36m\]\$(__git_ps1)\n\e[0;31m » \e[m "
##
# Your previous /Users/Matrix/.bash_profile file was backed up as /Users/Matrix/.bash_profile.macports-saved_2013-08-08_at_14:27:57
##
# MacPorts Installer addition on 2013-08-08_at_14:27:57: adding an appropriate PATH variable for use with MacPorts.
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
# Finished adapting your PATH environment variable for use with MacPorts.
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment