To open the config file (.zshrc), run the command (in Terminal):
nano ~/.zshrc
Or open the file in a text editor with
open ~/.zshrc
add short code for xcodegen:
export PATH=$HOME/bin:/usr/local/bin:$PATHalias YOUR_XCODEGEN_SHORTCODE='cd ~/Documents/FILE_NAME/APP_NAME; xcodegen; cd ~/Documents/FILE_NAME'export PATH="$HOME/.rbenv/bin:$PATH"export PATH="/opt/homebrew/bin:$PATH"