Skip to content

Instantly share code, notes, and snippets.

@MosesMendoza
Created July 3, 2013 17:52
Show Gist options
  • Save MosesMendoza/5920986 to your computer and use it in GitHub Desktop.
Save MosesMendoza/5920986 to your computer and use it in GitHub Desktop.
# show git branch in terminal prompt
function parse_git_branch(){
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/:(\1)/'
}
PS1="[\$?] \u@\h:\W\$(parse_git_branch)$ "
# for packaging and stuff
# display ls colors
export CLICOLOR=1
# export editor
export EDITOR=vim
# lots of history
export HISTSIZE=1000000
export HISTFILESIZE=1000000000
#if [ -f $(brew --prefix)/etc/bash_completion ]; then
# . $(brew --prefix)/etc/bash_completion
#fi
#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment