To view current PATH
echo -e ${PATH//:/\\n}Code language: PHP (php)
System wide Path Locations
cat /etc/paths
cat /etc/paths.d/10-cryptex
cat /etc/paths.d/100-rvictl
User Specific Path config locations
cat ~/.zprofile
cat ~/.zshrc
Of these, the .~/.zprofile is better for paths.
Use ~/.zshrc for aliases and a custom prompts etc.
Adding to Path on Mac
nano ~/.zprofile
export PATH=/path/to/directory:$PATHCode language: PHP (php)