Created
August 3, 2012 09:24
-
-
Save tmdvs/3246239 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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