Just go to your /home/user folder and edit your .bashrc file in order to include these aliases. Then reload the bashrc file and you'll get the new aliases available.
- :~$ cd ~
- :~$ vim .bashrc // :wq! (after paste the content)
- :~$ source .bashrc
alias hello='sudo /etc/init.d/apache2 stop && cd workspace/project && ddev start && ddev launch'
alias hi=''sudo systemctl stop apache2'
alias cex='ddev drush cex'
alias cim='ddev drush cim'
alias cexy='yes|ddev drush cex'
alias cimy='yes|ddev drush cim'
alias dgm = 'ddev drush generate module'
alias gs='git status'
alias gb='git branch'
alias gl='git log --oneline'
alias glc='git log --format=format: --name-only --since=12.month | egrep -v '^$' | sort | uniq -c | sort -nr | head -50'
alias gpom='git push origin master'
alias dsl='ddev start && ddev launch'
alias ddy='ddev delete -Oy'
alias dcs1='ddev exec -d=/var/www/html vendor/bin/phpcs --standard=Drupal --extensions='php,module,inc,install,test,profile,theme,info,txt,md' web/modules/custom/'
alias dcs2='ddev exec -d=/var/www/html vendor/bin/phpcs --standard=DrupalPractice --extensions='php,module,inc,install,test,profile,theme,info,txt,md' web/modules/custom/'