Here’s how to add a path to zsh permanently.
Edit .zshrc file and add the path. Create .zshrc file if it’s missing.
<pre lang="bash">
export PATH=$PATH:/new/path
Exit and relaunch shell. The new path should be in effect.
Echo to display new path.
<pre lang="bash">
echo $PATH