You can access your .zshrc or .bash_profile file on a Mac by opening your terminal and typing “nano .zshrc” or “nano .bash_profile”. This will open the file in the Nano text editor, where you can edit and save your changes.