Created
July 3, 2013 17:52
-
-
Save MosesMendoza/5920986 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
# 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