Created
September 14, 2015 06:31
-
-
Save stjernstrom/c81386ffaa52c6720368 to your computer and use it in GitHub Desktop.
This file contains 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
export CLICOLOR=1 | |
export LSCOLORS=ExFxCxDxBxegedabagacad | |
export PATH="/usr/local/sbin:/usr/local/bin:$HOME/bin:$PATH" | |
export PATH="$HOME/.rbenv/bin:$PATH" | |
eval "$(rbenv init -)" | |
export PATH="~/bin:$PATH" | |
# Java Path | |
export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/ | |
# Postgres | |
export PGDATA=/usr/local/var/postgres | |
if [ -f `brew --prefix`/etc/bash_completion ]; then | |
. `brew --prefix`/etc/bash_completion | |
fi | |
# Java Path | |
export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/ | |
#ruby | |
export RUBY_HEAP_MIN_SLOTS=1000000 | |
export RUBY_HEAP_SLOTS_INCREMENT=1000000 | |
export RUBY_HEAP_SLOTS_GROWTH_FACTOR=1 | |
export RUBY_GC_MALLOC_LIMIT=1000000000 | |
export RUBY_HEAP_FREE_MIN=500000 | |
# | |
## Bash | |
# | |
export HISTCONTROL=ignoreboth | |
export HISTSIZE=1000 | |
# UTF8 stuff | |
set meta-flag on | |
set input-meta on | |
set output-meta on | |
set convert-meta off | |
# force Bash to check your terminal's row/column sizes after each command | |
shopt -s checkwinsize | |
# Search history with arrows | |
bind '"\e[A":history-search-backward' | |
bind '"\e[B":history-search-forward' | |
function parse_git_dirty { | |
[[ $(git status 2> /dev/null | tail -n1) != "nothing to commit (working directory clean)" ]] && echo "*" | |
} | |
function parse_git_branch { | |
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/[\1$(parse_git_dirty)]/" | |
} | |
export PS1='\[\e[36;1m\]\w\[\e[0m\] $(__git_ps1 "[\[\e[0;32m\]%s\[\e[0m\]\[\e[0;33m\]$(parse_git_dirty)\[\e[0m\]]") \$ \[\e[0m\]' | |
# | |
alias json="python -mjson.tool" | |
alias cp="cp -v" # verbose | |
alias mv="mv -v" # verbose | |
alias rm="rm -v" # verbose | |
# | |
# Git | |
# | |
alias gs="git status" | |
alias gd="git diff" | |
alias gb="git branch" | |
# | |
# export PS1="> " |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment