Skip to content

Instantly share code, notes, and snippets.

@AAlfarho
Created October 5, 2017 04:06
Show Gist options
  • Save AAlfarho/f3ec09dd4fe88a26208ffac56da09c3d to your computer and use it in GitHub Desktop.
Save AAlfarho/f3ec09dd4fe88a26208ffac56da09c3d to your computer and use it in GitHub Desktop.
#!/bin/bash
alias sl="ls"
alias ls="ls -G"
alias irb="pry"
alias be="bundle exec"
alias gaa="git add -A"
alias gcm="git commit -m "
alias ber="bundle exec rspec"
alias bi="bundle install"
alias rdb="rails db"
alias rdbs="rails db:setup"
alias rdbsd="rails db:seed"
alias rdbm="rails db:migrate"
alias rgm="rails g model"
alias rgc="rails g controller"
alias rgma="rails g mailer"
alias rg="rails g"
alias rr="rails routes"
alias axo="cd ~/AppAcademy/Axo-Music/"
# make `g` behave like `git status` with no args, or `git` with args
g () {
if [ $# -eq 0 ]
then
git status
else
git "$@"
fi
}
__git_complete g _git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment