I installed some packages like brew via terminal which altered $PATH. Now iTerm's $PATH is not same as terminal, causing CLI commands like brew not working on iTerm.
echo $PATH on terminal gives:
/usr/local/opt/python/libexec/bin:/Users/avinashvarma/.rbenv/shims:/Users/avinashvarma/bin:/Users/avinashvarma/.rbenv/shims:/Users/avinashvarma/.nvm/versions/node/v6.10.0/bin:/Users/avinashvarma/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/munki:/Users/avinashvarma/gocode/bin:/Users/avinashvarma/gocode/bin
echo $PATH on iTerm gives:
/usr/bin:/bin:/usr/sbin:/sbin:/Users/avinashvarma/gocode/bin
I created a $PATH in .bashrc file but later deleted it and restarted system.
without the presence of .bashrc and .bash_profile no user-defined config should affect the shells.
Any ideas?