Skip to content

Instantly share code, notes, and snippets.

@lepikhinb
Created October 1, 2022 23:23
Show Gist options
  • Save lepikhinb/62102fa27400ea980f77c70d6567e726 to your computer and use it in GitHub Desktop.
Save lepikhinb/62102fa27400ea980f77c70d6567e726 to your computer and use it in GitHub Desktop.
Bash aliases for common commands
# Git
alias wip="git add .; git commit -m 'wip'"
alias push="git push"
# PHP
alias c="composer"
alias pest='./vendor/bin/pest'
alias pint='./vendor/bin/pint'
alias stan='./vendor/bin/phpstan'
# Artisan
alias a="php artisan"
alias am="php artisan migrate"
alias amf="php artisan migrate:fresh"
alias amfs="php artisan migrate:fresh --seed"
# Set up a project you just cloned ;)
alias prepare='cp .env.example .env; touch database/database.sqlite; composer install; php artisan key:generate; php artisan migrate:fresh --seed; npm install; npm run build'
# NPM
alias n="npm"
alias nrd="npm run dev"
alias nrb="npm run build"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment