git environment on mac os x


export GREP_OPTIONS='--color=auto'export GREP_COLOR='1;35;40'export CLICOLOR=1export LSCOLORS=GxFxCxDxBxegedabagacedalias ll='ls -la'# export JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF-8# export JAVA_HOME=$(/usr/libexec/java_home -v 1.8)# git command completionsource /Applications/ /Applications/ PS1="\u@\W\[\033[35m\]\$(git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/')\[\033[00m\] \[\033[1;32m\]\[\033[00m\] "



 brew install git bash-completion


[user]    name = yu    email =[push]    default = simple[core]    editor = vim    quotepath = false[color]    diff = auto    status = auto    branch = auto[color "branch"]    current = yellow reverse    local = yellow    remote = green[color "diff"]    meta = yellow bold    frag = magenta bold    old = red bold    new = green bold[color "status"]    added = yellow    changed = green    untracked = red[format]    pretty = %C(yellow)%h %C(green)| %C(red)%ad %C(green)| %C(magenta)%>(12,trunc)%an %C(green)| %C(green)%d %C(reset)%s[log]    date = iso


  1. Creating a Happy Git Environment on OS X
  2. Add Git Branch Name to Terminal Prompt (Mac)
  3. How To Setup Git Completion And Repo State On Osx
  5. table for 16-color terminal escape sequences
  6. Bash prompt basics
  7. git log containing author and date