Giter Site home page Giter Site logo

cmd-alias's Introduction

命令行别名

记录自己在开发中使用的别名,让自己变懒,更换全局的需要在 /etc 文件下面,如果是当前用户的需要在

使用 bash 的用户,需要修改 ~/.bash_aliases

sudo vim ~/.bash_aliases

使用 zsh 的用户,需要在 ~/.zshrc 文件中新增 ~/.zsh_aliases 文件

if [ -f ~/.zsh_aliases ]; then
     . ~/.zsh_aliases
fi
sudo vim ~/.zsh_aliases

Laravel

alias pa='php artisan'
alias par:l='php artisan route:list'
alias pam='php artisan migrate'
alias pam:r='php artisan migrate:refresh'
alias pam:rs='php artisan migrate:refresh --seed'
alias cu='composer update'
alias ci='composer install'
alias cda='composer dump-autoload -o'

Vagrant

alias vu='cd ~/Homestead && sudo vagrant up'
alias vs='sudo vagrant suspend'
alias vssh='sudo vagrant ssh'
alias vsp='sudo vagrant provision'
alias vsup='sudo vagrant up -provision'
alias eh='sudo vim /etc/hosts'
alias ehh='sudo vim ~/.homestead/Homestead.yaml'

Git

alias gl='git log'
alias gc='git config'
alias gs='git status'
alias gpl='git pull'
alias gps='git push'
alias gct='git checkout'

Ruby

alias bs='./bin/rails'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.