Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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.
Add Comment
Please, Sign In to add comment