zsh problems MacOS High Sierra

Jean Bermudez etereocode at gmail.com
Mon May 2 15:22:35 UTC 2022


Hi there!

I installed "NeoVim" and "zsh" via MacPorts on MacOs High Sierra.

I have a problem. High Sierra comes with "zsh" version 5.3 installed by
default. I noticed this after I installed zsh version 5.8.1 via MacPorts.

How did I figure it out?
- I changed the default shell (bash) to "zsh" via the command "chsh -s
/bin/zsh".
- I tried to start NeoVim with the command "nvim".
- And the system responded "zsh: command not found: nvim".
- After trying several things, I entered the command "zsh -version" and the
version that was active was 5.3 (High Sierra).
- I went back to the "bash" shell and simply entered the command "zsh" to
use the zsh shell, and when I checked the version (zsh -version) the
version was 5.8.1 (MacPorts). I entered the command "nvim" and it worked.

I got desperate looking for a solution and entered several times the
command you provide on your site to set MacPorts': sudo sh -c 'echo
${prefix}/bin/zsh >>/etc/shells'.

Now when I check the list of Shells with "cat /etc/shells". I get
"/bin/zsh" four times.

I want to delete all zsh and install only the MacPorts "zsh" cleanly; and
then set that shell to default.

How do I do this?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20220502/5f65de09/attachment.htm>


More information about the macports-users mailing list