Skip to content

Instantly share code, notes, and snippets.

@BlazOrazem
Last active May 8, 2016 09:56
Show Gist options
  • Save BlazOrazem/151fa932362568e198a2 to your computer and use it in GitHub Desktop.
Save BlazOrazem/151fa932362568e198a2 to your computer and use it in GitHub Desktop.
BashAliases - with SSH, Git, Laravel, Composer, SVN, Phinx, Less
#CUSTOM
alias www='cd d:/www'
# SSH
alias server='ssh [email protected]'
#FILE/FOLDER MANAGING
alias root='cd ~/'
alias cd..='cd ..'
alias ll='ls -lah'
alias md='mkdir'
alias rd='rm -rf'
alias rm='rm -i'
alias edit='vi'
alias rename='mv'
alias new='touch'
alias clr='clear'
alias cls='clear'
#SYSTEM RELATED
alias vialias='vi ~/.bash_aliases'
alias showalias='cat ~/.bash_aliases'
alias vietc='vi c:/Windows/System32/drivers/etc/hosts'
alias showetc='cat c:/Windows/System32/drivers/etc/hosts'
alias vivhosts='vi d:/xampp/apache/conf/extra/httpd-vhosts.conf'
alias showvhosts='cat d:/xampp/apache/conf/extra/httpd-vhosts.conf'
alias delc='rm c:/Users/User/AppData/Local/Temp/cache/* -f'
#LARAVEL
alias mctr='php artisan make:controller'
alias mmig='php artisan make:migration'
alias mmod='php artisan make:model'
alias mreq='php artisan make:request'
alias cclear='php artisan clear-compiled'
alias seed='php artisan db:seed'
alias migrate='php artisan migrate'
alias rollback='php artisan migrate:rollback'
alias refresh='php artisan migrate:refresh'
alias rcch='php artisan route:cache'
alias rclr='php artisan route:clear'
alias rlist='php artisan route:list'
alias empty='php artisan truncate'
#COMPOSER
alias cup='composer update'
alias ccup='composer self-update'
alias cdump='composer dump-autoload'
#GIT
alias add='git add --all'
alias com='git commit -m'
alias cam='git commit --amend'
alias remote='git remote add origin'
alias push='git push -u origin master'
alias pull='git pull origin master'
alias rebase='git rebase origin/master'
alias fetch='git fetch --all --prune --verbose --progress'
alias branch='git checkout -b'
alias switch='git checkout'
alias diff='git diff'
alias gst='git status'
alias gstr='git remote update && git status'
alias log='git log --pretty=oneline'
#SVN
alias sinfo='svn info'
alias scom='svn commit -m'
alias sup='svn update'
alias sst='svn status'
#PHINX
alias phinx='php vendor/robmorgan/phinx/bin/phinx'
alias pmig='phinx migrate'
alias pst='phinx status'
alias prol='phinx rollback'
alias pmake='phinx create'
alias pseed='phinx seed:run'
alias psc='phinx seed:create'
#LESS
alias lesscc='lessc --clean-css'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment