#!/usr/bin/env fish

# Git
alias ga="git add"
alias gb="git branch"
alias gc="git commit"
alias gs="git stash"
alias gbd="git build"
alias gsp="git smart-pull"
alias gst="git status"
alias gco="git checkout"
alias gcm="git checkout master"
alias gcd="git checkout develop"

function current_branch
  set ref (git symbolic-ref HEAD 2> /dev/null); or \
  set ref (git rev-parse --short HEAD 2> /dev/null); or return
  echo $ref | sed s-refs/heads/--
end

alias ggpush='git push origin (current_branch)'

# Bundler (Undo harmful from oh-my-zsh)
alias zeus > /dev/null && unalias zeus

# Rails
alias rdm='rake db:migrate && rake db:test:prepare'

# Zeus
alias zr='zeus rspec'
alias zc='zeus console'
alias zs='zeus start'
alias z='zeus'

# Quick look
alias ql='qlmanage -p "$argv" >& /dev/null'

# AWS Vault
alias ave='aws-vault exec'

#!/usr/bin/env fish

# Git
alias ga="git add"
alias gb="git branch"
alias gc="git commit"
alias gs="git stash"
alias gbd="git build"
alias gsp="git smart-pull"
alias gst="git status"
alias gco="git checkout"
alias gcm="git checkout master"
alias gcd="git checkout develop"
alias gcp="git cherry-pick"

function current_branch
  set ref (git symbolic-ref HEAD 2> /dev/null); or \
  set ref (git rev-parse --short HEAD 2> /dev/null); or return
  echo $ref | sed s-refs/heads/--
end

alias ggpush='git push origin (current_branch)'

# Bundler (Undo harmful from oh-my-zsh)
alias zeus > /dev/null && unalias zeus

# Rails
alias rdm='rake db:migrate && rake db:test:prepare'
alias bi='bundle install'
alias be='bundle exec'

# Zeus
alias zr='zeus rspec'
alias zc='zeus console'
alias zs='zeus start'
alias z='zeus'

# Quick look
alias ql='qlmanage -p "$argv" >& /dev/null'

# AWS Vault
alias ave='aws-vault exec'

Add git/bundle aliases for fish
Add git/bundle aliases for fish

ejoubaud/dotfiles,ejoubaud/dotfiles