hi all,
I’d like to share some Ubunt aliases that I find useful when working with roots stack:
#build site
alias bsite='cd /mnt/c/yoursite.test/site/web/app/themes/your-theme/; clear; yarn build'
#cd to most used folders
alias cdsite='cd /mnt/c/yoursite.test/; pwd; ls -ltr'
alias cdvue='cd /mnt/c/yoursite.test/site/web/app/themes/your-theme/resources/assets/scripts/vue/; pwd; ls -ltr'
alias cdtheme='cd /mnt/c/yoursite.test/site/web/app/themes/your-theme/; pwd; ls -ltr'
#check that SSH key forwarding is working before deploying
alias checkssh='echo "$SSH_AUTH_SOCK" && ssh-add -L'
#deploy
alias deploysite='cd /mnt/c/yoursite.test/trellis; ./bin/deploy.sh production yoursite.test'
#start local server
alias startsite='cd /mnt/c/yoursite.test/trellis; vagrant up'
#sync DB to remote
alias syncsite='cd /mnt/c/yoursite.test/site/scripts; ./sync.sh development production'
Does anybody else uses aliases?