Android studio terminal adb on mac

I was try many, it run when setup, but after restart Android studio, terminal error adb command not found and I must setup again. Now I found way to make it run forever.

Step 1: Open terminal
Step 2: Create ~/.zshrc file by command:

echo "" > ~/.zshrc

Step 3: Open this file and paste 2 lines, save and now it work forever.

export ANDROID_HOME=/Applications/Android\
export PATH="$ANDROID_HOME/platform-tools:$ANDROID_HOME/tools:$PATH"