I had installed Postgres.app before and after I uninstalled via App Cleaner now every time I open terminal this error appears in the first line I should mention that a followed what documentation for uninstalling the Postgres on their website but it doesn't work for me.
Warning: $PATH entry "/Applications/Postgres.app/Contents/Versions/9.6/bin" is not valid (No such file or directory)
.bash_profile:
# source ~/.profile
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
export PATH="/usr/local/opt/node@6/bin:$PATH"
how can I get rid of this annoying warning? Thanks.
You should look at all bash initialization files. There may be many, depending on your distro. There's a good list on tldp:
/etc/bash.bashrc/etc/profile/etc/bashrc~/.bash_profile~/.bash_login~/.profile~/.bashrcConsider that some of these files may also include all files in some directory. For example on most instances
/etc/profilewill run every .sh file in/etc/profile.d/, this may include a paths file called/etc/profile.d/extrapaths.sh.EDIT:
After checking the documentation for PostgresApp (1, 2), and this issue I found that it uses a file called
/etc/paths.d/postgresapp. Be sure to check it.If you'd like to remove the paths, it states that you should run the following command: