cd ~/
to go to your home foldernano .bash_profile
to create your new file.
alias dir=pwd
alias startDocker="docker-compose"
alias chrome="open -a 'Google Chrome'"
source .bash_profile
to load the file in your terminal.Via https://stackoverflow.com/questions/8967843/how-do-i-create-a-bash-alias