Skip to content

Instantly share code, notes, and snippets.

@khunemz
Created September 6, 2016 11:30
Show Gist options
  • Save khunemz/f495e7ea8da4a3db83e4b48843e6faf8 to your computer and use it in GitHub Desktop.
Save khunemz/f495e7ea8da4a3db83e4b48843e6faf8 to your computer and use it in GitHub Desktop.
custom_zshrc_of_chutipong_roobklom
# alias Rails
# rails with template
# wget https://raw.githubusercontent.com/khunemz/dry_and_snippets/master/bt.rb
# rails _4.2.7_ new app -m bt.rb
alias rn='rails new'
alias r4n='rails _4.2.7_ new'
alias rgm='rails generate migration'
alias rgc='rails generate controller'
alias rgmd='rails generate model'
alias rgsc='rails generate scaffold'
alias rgrs='rails generate resource'
alias rs='rails server'
alias rg='rails generate'
alias rd='rails destroy'
alias rdb='rails dbconsole'
alias rc='rails console'
alias rp='rails plugin'
alias ru='rails runner'
alias rgsz='rails g serializer'
#gem
alias add:devise="echo '\n gem \"devise\"' >> Gemfile && bundle install && rails g devise:install"
alias add:bootstrap-sass="echo '\n gem \"bootstrap-sass\"' >> Gemfile && bundle install"
alias add:pg="echo '\n gem \"pg\"' >> Gemfile && bundle install"
alias add:unicorn="echo '\n gem \"unicorn\"' >> Gemfile && bundle install"
alias add:capistrano="echo '\n gem \"capistrano\"' >> Gemfile && bundle install"
#rake
alias rt='rake test'
alias rr='rake routes'
alias rdm='rake db:migrate'
alias rdr='rake db:rollback'
alias rds='rake db:seed'
alias rdmd='rake db:migrate RAILS_ENV=development'
alias rdmt='rake db:migrate RAILS_ENV=development'
alias bdi='bundle install'
# alias Git
alias gcm='git commit -m '
# Laravel
alias pa='php artisan'
alias pa:s='php artisan serve'
alias pam:m='php artisan make:migration'
alias pam:c='php aritsan make:controller'
alias pam:md='php aritsan make:model'
alias pa:m='php artisan migrate'
alias pa:mr='php artisan migrate:rollback'
alias pa:rl='php artisan route:list'
# Composer
alias c='composer'
alias csu='composer self-update'
alias cu='composer update'
alias cr='composer require'
alias ci='composer install'
alias ccp='composer create-project'
alias cdu='composer dump-autoload'
alias cgu='composer global update'
alias cgr='composer global require'
# ember
alias es='ember serve'
alias en='ember new'
alias ea='ember addon'
alias eb='ember build'
alias ed='ember destroy'
alias eg='ember generate'
alias eh='ember help'
alias ein='ember init'
alias ei='ember install'
alias et='ember test'
alias eu='ember update'
alias ev='ember version'
alias eg:a='ember generate adapter'
alias eg:com='ember generate component'
alias eg:con='ember generate controller'
alias eg:md='ember generate model'
alias eg:r='ember generate route'
alias eg:h='ember generate helper'
alias eg:sz='ember generate serializer'
alias eg:t='ember generate template'
alias eg:trans='ember generate transform'
alias eg:v='ember generate view'
alias eg:mock='ember generate http-mock'
alias eg:proxy='ember generate http-proxy'
alias eg:resource='ember generate resource'
# npm
alias npmg="npm i -g "
# bower
alias bi="bower install"
# mysql
alias mylg='mysql -u m -p'
alias mysqlstart='sudo /opt/local/share/mysql5/mysql/mysql.server start'
alias mysqlstop='sudo /opt/local/share/mysql5/mysql/mysql.server stop'
alias mysqlrestart='sudo /opt/local/share/mysql5/mysql/mysql.server restart'
# my iMac
alias cd:support='cd Library/Application\ Support'
alias cd:ember='cd _code/learn/ember'
alias cd:rails='cd _code/learn/rails'
alias cd:laravel='cd _code/learn/laravel'
alias cd:learn='cd _code/learn'
alias cd:sublime='cd Library/Application\ Support/Sublime\ Text\ 3'
#phpunit
alias phpu:filter='phpunit --filter '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment