Created
August 2, 2018 14:51
-
-
Save vctrtvfrrr/d8e0ab08991fa738c2a10b5426ef9610 to your computer and use it in GitHub Desktop.
Bash Aliases (Git, Laravel and Vue)
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 apti="sudo apt install -y" | |
alias hs="history | grep" | |
alias mkcd='foo(){ mkdir -p "$1"; cd "$1" }; foo ' | |
alias myip="curl http://ipecho.net/plain; echo" | |
alias octal="stat -c '%a %n'" | |
alias snano="sudo nano" | |
alias update="sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get dist-upgrade -y && sudo apt-get autoremove -y && sudo apt-get autoclean -y" | |
alias gch="git checkout" | |
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 nah="git reset --hard && git clean -df" | |
alias wip="git add . && git commit -m 'wip'" | |
alias art="php artisan" | |
alias fresh="php artisan migrate:fresh" | |
alias migrate="php artisan migrate" | |
alias serve="php artisan serve > /dev/null 2>&1 &" | |
alias pserve="php -S localhost:8000 > /dev/null 2>&1 &" | |
alias p="phpunit --stop-on-failure" | |
alias pf="phpunit --stop-on-failure --filter" | |
alias pw="phpunit-watcher watch --stop-on-failure" | |
alias pwf="phpunit-watcher watch --stop-on-failure --filter" | |
alias ya="yarn add" | |
alias yad="yarn add --dev" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment