Skip to content

Instantly share code, notes, and snippets.

@daymun
Last active October 6, 2015 23:08
Show Gist options
  • Save daymun/3067966 to your computer and use it in GitHub Desktop.
Save daymun/3067966 to your computer and use it in GitHub Desktop.
~/
export CLICOLOR=1
export LSCOLORS=gxBxhxDxfxhxhxhxhxcxcx
export EDITOR="subl -w"
if [ -f `brew --prefix`/etc/bash_completion ]; then
. `brew --prefix`/etc/bash_completion
export PS1='\[\033[0;35m\]$(rbenv version-name)\[\033[0;32m\] \w\[\033[00m\] \[\033[00m\]at\[\033[0;32m\]$(__git_ps1)\[\033[00m\] $ '
fi
# History Handling
shopt -s histappend # append to .bash_history instead of overwriting
PROMPT_COMMAND='history -a' # immediately save history
export HISTCONTROL=ignoreboth # ignore sequential duplicates and commands prefixed with ' '
export HISTSIZE=10000 # resize history
eval "$(rbenv init -)"
export PATH="/usr/local/heroku/bin:/usr/local/bin:$PATH"
[user]
name = NAME
email = EMAIL
[color]
ui = auto
[color "branch"]
current = yellow
local = yellow
remote = green
[color "diff"]
meta = yellow
frag = magenta
old = red
new = green
[color "status"]
added = yellow
changed = green
untracked = cyan
[alias]
st = status
cm = commit
br = branch
co = checkout
df = diff
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
ll = log --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --decorate --numstat
mg = merge --no-ff
serve = !git daemon --reuseaddr --verbose --base-path=. --export-all ./.git
ours = "!f() { git checkout --ours $@ && git add $@; }; f"
theirs = "!f() { git checkout --theirs $@ && git add $@; }; f"
assume = update-index --assume-unchanged
unassume = update-index --no-assume-unchanged
assumed = "!git ls-files -v | grep ^h | cut -c 3-"
plop = "!git stash && git pull && git stash pop"
[core]
excludesfile = ~/.gitignore
[filter "media"]
clean = git-media-clean %f
smudge = git-media-smudge %f
.DS_Store
Thumbs.db
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment