# Handle the fact that this file will be used with multiple OSs platform=`uname` if [[ $platform == 'Linux' ]]; then alias l='ls -l --color' alias ll='ls -lrth --color' elif [[ $platform == 'Darwin' ]]; then alias l='ls -laG' alias ll='ls -lG' fi alias c='cd' alias cd-='cd -' alias ..='cd ../' alias ...='cd ../..' alias cd..='cd ..' alias cd...='cd ../..' alias cd....='cd ../../..' alias cd.....='cd ../../../..' alias cd/='cd /' alias ls='ls -G' alias aliases='vim ~/.dotfiles/zsh/aliases' alias b='bundle' alias bake='bundle exec rake' alias be='bundle exec' alias bi='bundle install' alias be='bundle exec' alias beg='bundle exec guard' alias bu='bundle update' alias cls=clear alias code='cd ~/code' alias d='cd ~/.dotfiles' alias dr='cd ~/Dropbox' alias duh='du -csh' alias functions='vim ~/.dotfiles/zsh/functions' alias f='fg' alias history='fc -l 1' alias h='heroku' alias irb='irb --readline -r irb/completion' alias patch='git format-patch HEAD^ --stdout > patch.diff' alias reguard='killall -9 ruby ; guard' alias r='rails' alias rc='rails console' alias reload='source ~/.zshrc' alias tail-logs='heroku logs -t' alias u='cd ..' alias v='vim' alias vi='vim' alias vimrc='vim ~/.vimrc' alias zsh='vim ~/.zshrc' # Git alias ammend='amend' alias amend='git commit --amend' alias gaa='echo "Use ga!" && git add --all' alias ga='git add --all' alias gae='echo "Use amend!" && git commit --amend' # Remove when not needed alias gau='git add --update' alias gb='git branch' alias gc='git commit' alias gci='echo "Use gc!" && git commit' # Remove when no longer needed alias gcl='git clone' alias gcm="git commit -m" alias gco='git checkout' alias gcp='git cherry-pick' alias gd='git diff' alias gdc='git diff --cached' alias gdm='git diff master' alias gds='git diff --stat=160,120' alias gdw='git diff --color-words' alias gf='git fetch' alias gh="source ~/.githelpers && show_git_head" alias gl='gll -25' alias gll="source ~/.githelpers && pretty_git_log" alias gla='gll --all' alias gmff='git merge --ff-only' alias gmtheirs='git merge -Xtheirs' alias gp='git push' alias gpf='git push -f' alias gpff='git pull --ff-only' alias gpl='git pull' alias gpom='git push origin master' alias gpr='git pull --rebase' alias gr='git reset' alias grbm='git rebase master' alias grc='git rebase --continue' alias gre='git remote' alias gsnapshot='git stash save "snapshot: $(date)" && git stash apply "stash@{0}"' alias gst='git status' alias gs='git stash' alias gsa='git stash save' alias gsd='git stash drop' alias gsl='git stash list' alias gsp='git stash pop' alias gx='git reset --hard' # Notes alias todo='vim ~/Dropbox/notes/life-todo' alias wtodo='vim ~/Dropbox/work/redwood/notes/work-todo' alias sharp='vim ~/Dropbox/notes/sharpening-notes' alias completion='vim ~/Dropbox/notes/completion-list' alias powerup='vim ~/code/learning-area/notes/powerup' alias pnotes='vim ~/Dropbox/notes/programming-notes' alias wnotes='vim ~/Dropbox/work/redwood/notes/project-notes' # Projects alias projects='cd ~/code/projects' alias dot='cd ~/code/projects/dotfiles' alias p='cd ~/code/work/redwood/campusperks' alias work='cd ~/code/work' alias learn='cd ~/code/learning-area' alias current='cd ~/code/learning-area/languages-frameworks/elixir/introducing-elixir/physics' # Heroku staging alias staging-console='heroku run console --app campusperks-staging' alias staging-tail='heroku logs --tail --app campusperks-staging' # Heroku production alias production-console='heroku run console --app campusperks' alias production-tail='heroku logs --tail --app campusperks'