Skip to content

Instantly share code, notes, and snippets.

@hanspagel
Last active July 6, 2018 09:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hanspagel/5710f625b18f9fe939ec1e87e2acc27d to your computer and use it in GitHub Desktop.
Save hanspagel/5710f625b18f9fe939ec1e87e2acc27d to your computer and use it in GitHub Desktop.
# jump to web projects
alias web='cd ~/Documents/Websites'
# repeat last command with sudo
alias lol='sudo "$BASH" -c "$(history -p !!)"'
# alias for docker-compose
alias dcp='docker-compose'
# run artisan in docker
alias artisan='CONTAINER=${CONTAINER:-php} && dcp exec $CONTAINER php artisan'
# run composer in docker
alias domposer='CONTAINER=${CONTAINER:-php} && dcp exec $CONTAINER composer'
# run composer require in docker
alias cr='domposer require'
# install node dependencies and start webpack
alias ys='yarn && yarn start'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment