Skip to content

Instantly share code, notes, and snippets.

@tmdvs
Created August 3, 2012 09:24
Show Gist options
  • Save tmdvs/3246239 to your computer and use it in GitHub Desktop.
Save tmdvs/3246239 to your computer and use it in GitHub Desktop.
alias ls='ls -gFh'
# MacPorts Installer addition on 2010-10-11_at_11:46:41: adding an appropriate $
export PATH=/usr/local/bin:/opt/local/bin:/opt/local/sbin:$PATH
# Finished adapting your PATH environment variable for use with MacPorts.
export GREP_OPTIONS='--color=auto'
export CLICOLOR=1;
function git-branch() {
BRANCH=`git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'`
echo -n $BRANCH
}
function bash-prompt() {
PS1="\[$(tput bold)\]\[$(tput setaf 4)\]\u:\[$(tput setaf 3)\]\W\[$(tput setaf 1)\]\[$(tput setaf 7)\]$(git-branch)$ \[$(tput sgr0)\]"
}
PROMPT_COMMAND=bash-prompt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment