Skip to content

Instantly share code, notes, and snippets.

@dinhquochan
Created October 31, 2018 14:55
Show Gist options
  • Save dinhquochan/d414ec28090a2770e4fe272a7ee94b24 to your computer and use it in GitHub Desktop.
Save dinhquochan/d414ec28090a2770e4fe272a7ee94b24 to your computer and use it in GitHub Desktop.
ZSH Aliases
alias laralog="tail -f -n 450 storage/logs/laravel*.log | grep -i -E \"^\[\d{4}\-\d{2}\-\d{2} \d{2}:\d{2}:\d{2}\]|Next [\w\W]+?\:\" --color"
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 wip="git add . && git commit -m 'wip'"
alias nah='git reset --hard;git clean -df'
alias art='php artisan'
alias a='php artisan'
alias tinker='php artisan tinker'
alias migarte='php artisan migrate'
alias mfs='php artisan migrate:fresh'
alias serve='artisan serve'
alias c='composer'
alias sf='bin/console'
alias phpunit='vendor/bin/phpunit'
alias copyssh="pbcopy < $HOME/.ssh/id_rsa.pub"
function rmds() {
find . -name '.DS_Store' -type f -delete
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment