Skip to content

Instantly share code, notes, and snippets.

@vinirodr
Forked from vagnerzampieri/.bash_aliases
Last active December 10, 2015 22:38
Show Gist options
  • Save vinirodr/4503664 to your computer and use it in GitHub Desktop.
Save vinirodr/4503664 to your computer and use it in GitHub Desktop.
# Apt
alias apti='sudo apt-get install'
alias apts='sudo apt-cache search'
alias aptp='sudo apt-get --purge remove'
alias aptr='sudo apt-get remove'
# Rails
alias rdbd='rake db:drop'
alias rdbc='rake db:create'
alias rdbm='rake db:migrate'
alias rdbs='rake db:seed'
alias rdbi='rake db:destroy db:create db:migrate db:seed'
alias rdbr='rake db:rollback'
alias rdbt='rake db:test:prepare'
alias rt='rake -T'
alias rr='rake routes'
alias rsp='rake spec'
alias rc='rails c'
alias rg='rails g'
alias rd='rails destroy'
alias rs='rails s'
alias rdb='rails dbconsole'
# Git
alias g='git'
alias gcl = 'git clone'
alias gs='git status'
alias gpl='git pull'
alias glom='git pull origin master'
alias gp='git push'
alias gbrd='git push origin --delete'
alias gpom='git push origin master'
alias ga='git add'
alias gc='git commit -m'
alias gca='git commit -am'
alias gba='git branch -a'
alias gbd='git branch -d'
alias gco="git checkout"
alias gcb='git checkout -b'
alias gst='git stash'
alias gstp='git stash pop'
alias gm="git merge"
alias gd='git diff --ignore-space-change'
alias gsi="git submodule init"
alias gsu="git submodule update"
alias gl="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative"
# Bundle
alias b='bundle'
alias be='bundle exec'
# Gem
alias gei='gem install'
alias geu='gem uninstall'
# Adicione as linhas abaixo no se bash
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment