The answer is simple, almost evident in the question. Here's why: The shell zsh is not bash, it is a different shell. zsh will not use the default files built for bash: .bashrc or .bash_profile. These two files are startup configuration files for bash. zsh has its own startup configuration files. You can find out more about them here on the zsh
Install zsh with your package manager. sudo apt install zsh. 2. Make your default shell. chsh -s $ (which zsh) 3. Restart your terminal and you are ready to go (In linux ubuntu you may need toYou’ll need to edit your terminal’s zsh source zshrc file to add the Path export to the Postgres app. Open your terminal app, and run this command to edit the zshrc file: vim ~/.zshrc. The command will open the zshrc file in a Vim editor that you can use to edit the file. /etc/zshenv # Read for every shell ~/.zshenv # Read for every shell except ones started with -f /etc/zprofile # Global config for login shells, read before zshrc ~/.zprofile # User config for login shells /etc/zshrc # Global config for interactive shells ~/.zshrc # User config for interactive shells /etc/zlogin # Global config for login shells Thank you so much! I couldn't find the zshrc file in my Mac OS. But after your response, I searched for threads on "missing zshrc" and managed to create one. I then deleted the redundant lines and now it all works fine! Thanks again! –