Created
May 31, 2012 14:26
-
-
Save leandrowd/2843724 to your computer and use it in GitHub Desktop.
.bashrc configs
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
function git_branch_name() { | |
git branch 2>/dev/null | grep -e '^*' | sed -E 's/^\* (.+)$/(\1) /' | |
} | |
function show_colored_git_branch_in_prompt() { | |
PS1="\[\033[01;32m\]\u@\h:\[\033[01;34m\]\w\[\033[31m\]\$(git_branch_name)\[\033[m\]$ " | |
} | |
#export ps1 to bash colors | |
show_colored_git_branch_in_prompt | |
# Cli Colors | |
export CLICOLOR=1 | |
# use yellow for dir’s | |
export LSCOLORS=dxfxcxdxbxegedabagacad | |
# history handling | |
# | |
# Erase duplicates | |
export HISTCONTROL=erasedups | |
# resize history size | |
export HISTSIZE=10000 | |
# append to bash_history if Terminal.app quits | |
shopt -s histappend | |
#PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting | |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment