title: How to update zsh in Mac OSX Sierra?
body: <p>I am trying to update ZSH in Mac OSX Sierra to 5.3.1
  I have used brew to update it with following commands.</p>
  
  <pre><code>$brew install zsh
  $sudo dscl . -create /Users/$USER UserShell /usr/local/bin/zsh
  </code></pre>
  
  <p>Now after rebooting, when I run tests, this is what I have:</p>
  
  <pre><code>$dscl . -read /Users/$USER UserShell
     UserShell: /usr/local/bin/zsh
  
  $which zsh
    /bin/zsh
  
  $zsh --version
    zsh 5.2 (x86_64-apple-darwin16.0)
  
  $echo $SHELL
    /usr/local/bin/zsh
  </code></pre>
  
  <p>So I don't understand why iTerm2 and my regular Mac terminal won't pickup new location for zsh (/usr/local/bin/zsh), and why is it still showing previous version (5.2). I also run this to confirm brew installed new version.</p>
  
  <pre><code>$ls -la /usr/local/bin/zs*
     lrwxr-xr-x  1 myusername  admin  27 Mar 25 18:48 /usr/local/bin/zsh -&gt; ../Cellar/zsh/5.3.1/bin/zsh
     lrwxr-xr-x  1 myusername  admin  33 Mar 25 18:48 /usr/local/bin/zsh-5.3.1 -&gt; ../Cellar/zsh/5.3.1/bin/zsh-5.3.1
  </code></pre>
  
  <p>I am also running oh-my-zsh, which I have already updated to the latest version.</p>