Skip to content

Instantly share code, notes, and snippets.

@romanmt
Created September 2, 2011 14:08
Show Gist options
  • Select an option

  • Save romanmt/1188678 to your computer and use it in GitHub Desktop.

Select an option

Save romanmt/1188678 to your computer and use it in GitHub Desktop.
Bash Profile
#!/bin/bash
export CLICOLOR=1
export LSCOLORS=gxBxhxDxfxhxhxhxhxcxcx
alias ls='ls -pFh'
alias grep='grep --color=auto'
# Set git autocompletion and PS1 integration
if [ -f /usr/local/git/contrib/completion/git-completion.bash ]; then
. /usr/local/git/contrib/completion/git-completion.bash
fi
GIT_PS1_SHOWDIRTYSTATE=true
if [ -f /opt/local/etc/bash_completion ]; then
. /opt/local/etc/bash_completion
fi
export PS1='\[$(tput sgr0)$(tput setaf 5)\]\w\[$(tput sgr0)$(tput setaf 2)\] $(__git_ps1 "[%s]") \n\[$(tput setaf 3)\]\u@\h \[$(tput sgr0)\]=> '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment