| 123456789101112131415161718192021222324252627282930313233 |
- tinker() {
- if [ -z "$1" ]; then
- php artisan tinker
- else
- php artisan tinker --execute="\"dd($1);\""
- fi
- }
- initialStuff() {
- php artisan optimize:clear; \
- php artisan event:cache; \
- php artisan config:cache; \
- php artisan route:cache;
- }
- # Determine size of a file or total size of a directory
- fs() {
- if du -b /dev/null >/dev/null 2>&1; then
- local arg=-sbh
- else
- local arg=-sh
- fi
- if [[ -n "$@" ]]; then
- du $arg -- "$@"
- else
- du $arg .[^.]* ./*
- fi
- }
- # Commonly used aliases
- alias ..="cd .."
- alias ...="cd ../.."
- alias art="php artisan"
|