Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 67 lines (55 sloc) 1.748 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
if [ `whoami` != 'justin' ]; then
export USER=`whoami`
  source /home/$USER/.bashrc 2> /dev/null
fi

export PATH="$HOME/bin:/usr/local/bin:/usr/local/sbin:$PATH"
export PROMPT_COMMAND=''
export CLOJURESCRIPT_HOME="/Users/justin/code/clojurescript/"

alias ll='ls -alth'
alias v=vim
alias l=less
alias e=emacs
alias more=less
alias s='screen -Rd'
alias t='tmux attach || tmux'
alias sb='. ~/.bashrc && . ~/.*profile'
alias db='psql -U postgres'
alias sd='sudo su -m'
alias sc='ruby script/console'

export EDITOR='emacs'
export PAGER=less
export HISTSIZE=1000000
export HISTFILESIZE=100000000

function cleanup {
  rm -v $1 `find . -name '*~'`
}

alias ck='cd ~/code'
alias cs='cd ~/src'
alias cj='cd ~/code/jiraph'
alias cb='cd ~/code/protobuf'
alias cr='cd ~/code/drip'
alias cu='cd ~/code/useful'
alias cl='cd ~/code/leiningen'
alias cw='cd ~/web'

function admin {
  if [ "$RAILS_ENV" = 'qa' ]; then
sudo su - qa -c 'HOME=/home/justin/ bash'
  else
sudo su - wgadmin -c 'HOME=/home/justin/ bash'
  fi
}

# curl
alias get='curl -X GET -H "Content-Type: application/json" -w "\n%{http_code}\n"'
alias put='curl -X PUT -H "Content-Type: application/json" -w "\n%{http_code}\n"'
alias post='curl -X POST -H "Content-Type: application/json" -w "\n%{http_code}\n"'
alias patch='curl -X PATCH -H "Content-Type: application/json" -w "\n%{http_code}\n"'
alias delete='curl -X DELETE -H "Content-Type: application/json" -w "\n%{http_code}\n"'

export GIT_ALLOW_SUBMODULE_COMMITS=1

if [[ "$TERM" != "dumb" ]]; then
PS1="\h:\W \[\033[01;33m\]\$(__git_ps1 %s 2> /dev/null)\[\033[00;38m\]\\$ \[\033]0;\h: \w\007\]"
  if [[ $(whoami) != 'justin' ]]; then
PS1="\u@$PS1"
  fi

stty -ixon
  stty discard '^-' 2> /dev/null
fi

Something went wrong with that request. Please try again.