Skip to content

Instantly share code, notes, and snippets.

@danp
Created April 1, 2014 16:51
Show Gist options
  • Save danp/9918152 to your computer and use it in GitHub Desktop.
Save danp/9918152 to your computer and use it in GitHub Desktop.
HISTFILE=~/.zsh_history
HISTSIZE=10000
SAVEHIST=10000
unsetopt beep
export PATH="/Applications/Postgres.app/Contents/Versions/9.3/bin:/usr/local/bin:/usr/local/google-cloud-sdk/bin:$PATH"
function cloud() {
eval "$(ion-client shell)"
cloud "$@"
}
export ACK_PAGER="less -R"
alias a='ack'
alias be='bundle exec'
alias ber='bundle exec rspec'
alias bi='bundle install'
alias ua='ls -la'
alias gd='git diff'
alias gck='git checkout'
alias gs='git status'
alias gp='git pull --rebase'
alias gl='git log'
alias gc='git commit'
alias gm='git merge'
alias h='heroku'
alias ht='heroku logs -t'
alias hs='heroku sudo'
alias hst='heroku sudo logs -t'
alias hks='hk sudo'
alias hksl='hk sudo log'
alias hkl='hk log'
alias gb='git branch'
alias ga='git add'
alias gca='git commit -a'
alias ic='ion-client'
alias ics='ion-client ssh'
alias p='pwd'
alias gg='godep go'
alias gig='godep go install'
alias gug='godep go build'
gclw() {
cd ~/Projects/work && git clone "git@github.com:heroku/$1.git" && cd "$1"
}
gcl() {
git clone "$1" && cd "$(basename "$1" .git)"
}
e() {
osascript >/dev/null 2>&1 <<EOF
tell application "Emacs" to activate
EOF
emacsclient -n $*
}
export PATH="/Applications/Emacs.app/Contents/MacOS/bin:$PATH"
export EDITOR=emacsclient
export WORDCHARS='*?_.[]~=&;!#$%^(){}<>'
fpath=($HOME/.zsh-completions $fpath)
autoload -U compinit
compinit
source $HOME/.zsh/zsh-git-prompt/zshrc.sh
export PS1='%C$(git_super_status) %% '
export PATH="/usr/local/go/bin:$PATH"
export GOPATH=~/Projects/go/gopath
export PATH="$PATH:$GOPATH/bin"
[ -f /opt/boxen/env.sh ] && source /opt/boxen/env.sh
export PATH="$(echo "$PATH" | sed -e 's/^bin://')" # no
export PATH="/usr/local/heroku/bin:/usr/local/foreman/bin:$PATH"
if [ -f `brew --prefix`/etc/autojump.zsh ]; then
. `brew --prefix`/etc/autojump.zsh
fi
export PATH="$HOME/bin:$PATH"
h3() { http "$@" "Accept: application/vnd.heroku+json; version=3" }
alias c3='curl -n -H "Accept: application/vnd.heroku+json; version=3"'
alias f=forego
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment