Skip to content

Instantly share code, notes, and snippets.

@cgiovanii
Last active October 22, 2016 22:19
Show Gist options
  • Save cgiovanii/7833862 to your computer and use it in GitHub Desktop.
Save cgiovanii/7833862 to your computer and use it in GitHub Desktop.
Shell: bash_aliases
# ---------------------------
# Autor: giovani Oliveira
# Data: 20-10-2016.
#-------------------------------------------------------
# Enable aliases to be sudo’ed
#-------------------------------------------------------
alias sudo='sudo '
#-------------------------------------------------------
# Apps Aliases
#-------------------------------------------------------
alias c='clear'
alias edit='subl'
alias chromo='chromium-browser'
alias apache-restart='sudo apache2ctl restart'
#-------------------------------------------------------
# Apt Aliases
#-------------------------------------------------------
alias add-ppa='sudo add-apt-repository'
alias get-ppa='sudo apt-get update && sudo apt-get install'
alias install='sudo apt-get install'
alias update='sudo apt-get update'
alias zap='sudo apt-get purge'
alias clean='sudo apt-get autoremove'
#-------------------------------------------------------
# Git Aliases
#-------------------------------------------------------
#alias ini='git init'
alias gst='git status'
alias all='git add .'
alias add='git add'
alias dif='git diff'
alias go='git checkout'
alias clone='git clone'
alias comm='git commit -m'
alias coma='git commit -a -m'
alias push='git push origin'
alias pull='git pull origin'
alias copy='git branch'
alias logs='git log --pretty=oneline'
alias undo='git reset HEAD'
alias merge='git merge'
alias reset='git checkout --'
#-------------------------------------------------------
# Vagrant Aliases
#-------------------------------------------------------
# alias vinit='vagrant up'
# alias vpause='vagrat suspend'
# alias vstop='vagrant halt'
# alias vss='vagrant ssh'
# alias vstart='cd Vagrant && vinit'
#-------------------------------------------------------
# Artisan Aliases
#-------------------------------------------------------
alias artisan="php artisan"
alias seed="artisan db:seed"
alias rollback="artisan migrate:rollback"
alias migrate="artisan migrate"
alias refresh="artisan migrate:refresh --seed"
alias migrate:make="artisan migrate:make"
alias tinker="artisan tinker"
alias gen:ctl="artisan generate:controller"
alias gen:form="artisan generate:form"
alias gen:mig="artisan generate:migration"
alias gen:mod="artisan generate:model"
alias gen:pivot="artisan generate:pivot"
alias gen:res="artisan generate:resource"
alias gen:scaf="artisan generate:scaffold"
alias gen:seed="artisan generate:seed"
alias gen:test="artisan generate:test"
alias gen:view="artisan generate:view"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment