I use Oh my Zsh to manage my shell. Below is my configuration.
.zshrc
# Path to your oh-my-zsh installation.
export ZSH="/Users/mherchel/.oh-my-zsh"
ZSH_THEME="robbyrussell"
plugins=(
git
)
source $ZSH/oh-my-zsh.sh
export MAMP_PHP=/Applications/MAMP/bin/php/php8.1.1/bin
export PATH="$MAMP_PHP:$PATH"
export PATH=$PATH:/Applications/MAMP/Library/bin
export PATH=/usr/local/bin:$PATH
alias php='/Applications/MAMP/bin/php/php8.1.1/bin/php -c "/Library/Application Support/appsolute/MAMP PRO/conf/php8.1.1.ini"'
alias pear='/Applications/MAMP/bin/php/php8.1.1/bin/pear'
alias pecl='/Applications/MAMP/bin/php/php8.1.1/bin/pecl'
alias got='git'
alias gti='git'
alias gi='git'
alias giit='git'
alias it='git'
alias gt='git'
alias sgit='git'
alias dreset="git reset && git checkout . && rm inter* && rm *.patch && git status"
alias qd="chmod -R 777 sites && rm -rf sites/default && git checkout . && drush si --db-url=sqlite://sites/example.com/files/.ht.sqlite --account-pass=admin --site-name=Drupal -y"
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
export PATH="/usr/local/opt/imagemagick@6/bin:$PATH"
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"