开发配置
# AUTO LOAD COMMAND
# Git
alias ls='ls --color=auto';
alias ll='ls -lh';
alias ld='ll |grep "^d"';
alias psw='ps -a --windows';
alias gs='git status';
alias gad='git add -A';
alias gcm='git commit -m "$comments"';
alias gpushb="git push origin $1";
alias gpullb="git pull origin $1";
alias gcb="git checkout $1";
alias gcc="git checkout cxl";
alias gcm="git checkt master";
alias gb="git branch";
alias gba="git branch -a";
alias gmb="git merge $1";
alias gmm="git merger master";
alias gdf="git diff";
alias gll="git log --graph --abbrev-commit --decorate --all --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(dim white) - %an%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n %C(white)%s%C(reset)";
# FILE
alias ..='cd ..';
alias ....='cd ../../';
# VI/VIM
alias vi='vim';
# .bash_profile
alias sss='source ~/.bash_profile';
alias bash='vim ~/.bash_profile';
# Nginx
alias nginx.start='service nginx start';
alias nginx.stop='nginx -s stop';
alias nginx.process='ps -ef | grep nginx';
alias nginx.reload='nginx -s reload';
alias nginx.kill='pkill -9 nginx';
alias nginx.restart='service nginx restart';
# Win
alias cls='clear';
# Artisan
alias autoload='composer dump-autoload';
alias art.key='php artisan key:generate';
alias migrate='php artisan migrate';
alias route.list='php artisan route:list';
# Laravel-admin
alias admin.install='composer require encore/laravel-admin "1.5.*"';
alias admin.install.2='php artisan vendor:publish --provider="Encore\Admin\AdminServiceProvider" && php artisan admin:install';
alias admin.helper='composer require laravel-admin-ext/helpers && php artisan admin:import helpers';