Skip to content

Instantly share code, notes, and snippets.

@smhdhsn
Last active December 17, 2021 08:57
Show Gist options
  • Save smhdhsn/fe7f4fd83926b27e87a2992da7540346 to your computer and use it in GitHub Desktop.
Save smhdhsn/fe7f4fd83926b27e87a2992da7540346 to your computer and use it in GitHub Desktop.
Aliases [Linux OS]
##################################################
# A few useful aliases to make our lives easier. #
# #
# Symfony - Laravel - Docker - Git #
##################################################
# Symfony
alias sf-dp-db='sf-c doctrine:schema:drop -n -q --force --full-database'
alias sf-db-res='sf-dp-db && sf-rm-m && sf-mk-m && sf-m'
alias sf-m='sf-c doctrine:migrations:migrate -n -q'
alias sf-pu='symfony php bin/phpunit'
alias sf-mk-m='sf-c make:migration'
alias sf-rm-m='rm migrations/*.php'
alias sf-s='symfony server:start'
alias sf-e='symfony server:stop'
alias sf-o='symfony open:local'
alias sf-c='symfony console'
# Laravel
alias pf='clear && vendor/bin/phpunit --filter'
alias pu='clear && vendor/bin/phpunit'
alias pa='php artisan'
alias pa-s='pa serve'
# Additional
alias php-s='php -S localhost:8000 -t public'
# Docker
alias docker-kill-all='docker kill $(docker ps -q)'
# Git
alias reset='git reset HEAD --hard && git clean -fd'
alias nah='git reset --hard && git clean -df'
alias amend='git commit --amend -m'
alias checkout='git checkout'
alias commit='git commit -m'
alias pick='git cherry-pick'
alias status='git status'
alias branch='git branch'
alias merge='git merge'
alias fetch='git fetch'
alias push='git push'
alias pull='git pull'
alias log='git log'
alias add='git add'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment