Skip to content

Instantly share code, notes, and snippets.

@andersonpem
Created December 20, 2019 00:12
Show Gist options
  • Save andersonpem/c6dc471d88f53042f60d9628259abfce to your computer and use it in GitHub Desktop.
Save andersonpem/c6dc471d88f53042f60d9628259abfce to your computer and use it in GitHub Desktop.
Some useful Bash and ZSH aliases
# 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