Created
December 20, 2019 00:12
-
-
Save andersonpem/c6dc471d88f53042f60d9628259abfce to your computer and use it in GitHub Desktop.
Some useful Bash and ZSH aliases
This file contains 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
# PHP - Laravel Related | |
alias pa="php artisan" | |
#Clears all cached assets in Laravel | |
alias paclear='php artisan cache:clear && php artisan config:clear && php artisan view:clear && composer dump-autoload' | |
# Linux Related | |
#APT Package Manager | |
#All upgrades in a single command add the flag -y for no confirmation needed | |
alias adg="sudo apt-get update && sudo apt-get upgrade" | |
#Install broken dependencies | |
alias af="sudo apt-get -f install" | |
#Updates the package list then install a specific one | |
alias aui="sudo apt update && sudo apt install" | |
#Terminal Related | |
#Makes a directory and cd into it immediately | |
alias mcd='{ IFS= read -r d && mkdir "$d" && cd "$_"; } <<<' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment