Created
August 27, 2017 16:53
-
-
Save mustafatoker/0f40c986a50b064a985319e5d08994fb to your computer and use it in GitHub Desktop.
Laravel Bash Aliases
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias art="php artisan" | |
alias c='composer' | |
alias cclear='php artisan cache:clear' | |
alias cdo="composer dump-autoload -o" | |
alias cu='composer update' | |
alias ci='composer install' | |
alias chrome="/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome" | |
alias d='docker' | |
alias d='php artisan db:seed' | |
alias doc='docker-compose' | |
alias dm='docker-machine' | |
alias g='git' | |
alias gs='git status' | |
alias gl="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" | |
alias migrate="php artisan migrate" | |
alias nah='git reset --hard;git clean -df' | |
alias ll="ls -lh" | |
alias la='ls -lAh' | |
alias lr-i='composer create-project --prefer-dist laravel/laravel' | |
alias vu='cd ~/Homestead && vagrant up' | |
alias vs='vagrant suspend' | |
alias vssh='vagrant ssh' | |
alias vhalt="vh" | |
alias vm='ssh [email protected] -p 2222' | |
alias par:l='php artisan route:list' | |
alias serve="php artisan serve" | |
alias tinker="php artisan tinker" | |
alias wip="git add . && git commit -m 'wip'" | |
alias eh="subl /private/etc/hosts" | |
seed() { | |
php artisan db:seed --class="$@" | |
;} | |
# Misc PHP | |
t() { | |
if [ -f vendor/bin/phpunit ]; then | |
vendor/bin/phpunit "$@" | |
else | |
phpunit "$@" | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://laravel-news.com/bash-aliases?utm_medium=feed&utm_source=facebook.com&utm_campaign=Feed%3A+laravelnews