As of today Nov 4, 2018 all the following methods works, install the zsh with:
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
Not recommending brew installation for zsh:
brew install zsh zsh-completions
P.S: Tried with with brew and brew install under the root and is not an wise idea to do so due the security and all time anything related will need to be started under sudo so better is to stick with curl or wget.
to make work conda in OS X with oh-my-zsh installed is to add path as following and will work.
Find the python paths so can see if you installed Anaconda2 or Anaconda3: where python or which python will result in similar output:
/usr/bin/python
/Users/"username"/anaconda3/bin/python
/usr/bin/python
Finding your Anaconda Python interpreter path
vi ~/.zshrc or gedit ~/.zshrc
For Anaconda:
at field # User configuration add:
PATH="$HOME/anaconda/bin:$PATH"
For Anaconda2 at field # User configuration add:
PATH="$HOME/anaconda/bin:$PATH"
For Anaconda3 at field # User configuration add:
PATH="$HOME/anaconda3/bin:$PATH"
or replace "username" with your username:
PATH="/Users/"username"/anaconda3/bin:$PATH
According to documentation Installing on macOS we add add in
~/.zshrc instead of .bashrc or .bash_profile
Replace “<path to anaconda>” with the actual path to your Anaconda
installation.
This methods are working on ubuntu/Centos7/MacOS as well (just
close/reset the terminal once you are completing the changes) than
just type conda to test.
Per @truongnm comment just source after adding the path: "I pasted the
path from my bash_profile, and don't forget to source ~/.zshrc"