Re: zsh problems MacOS High Sierra

2022-05-05 Thread Sriranga Veeraraghavan
Happy to have been of help. Best, -ranga > On May 5, 2022, at 10:11, Jean Bermudez wrote: > > Thank you very much! This fixed my problem. I have zsh 5.8.1 as the default > shell and I can run NeoVim without problems. > > El lun, 2 may 2022 a las 16:33, Sriranga Veeraraghavan >

Re: zsh problems MacOS High Sierra

2022-05-03 Thread Dave Horsfall
On Mon, 2 May 2022, Ryan Schmidt wrote: > When the MacPorts installer detects that your shell is zsh, it places > such a line in ~/.zprofile. I don't know if there is a significant > difference between putting it in ~/.zprofile vs putting it in ~/.zshenv. I've been using ZSH on various boxen

Re: zsh problems MacOS High Sierra

2022-05-03 Thread raf
On Mon, May 02, 2022 at 11:22:35AM -0400, Jean Bermudez wrote: > 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

Re: zsh problems MacOS High Sierra

2022-05-03 Thread Joshua Root
Ryan Schmidt wrote: On May 2, 2022, at 23:49, Sriranga Veeraraghavan wrote: >/I am not a zsh user, but according to zsh's documentation, ~/.zprofile is run only when zsh is used as a login shell, whereas ~/.zshenv is read for nearly every instance of zsh (including scripts):

Re: zsh problems MacOS High Sierra

2022-05-02 Thread Ryan Schmidt
On May 2, 2022, at 23:49, Sriranga Veeraraghavan wrote: > On May 2, 2022, at 20:46, Ryan Schmidt wrote: > >> When the MacPorts installer detects that your shell is zsh, it places such a >> line in ~/.zprofile. I don't know if there is a significant difference >> between putting it in

Re: zsh problems MacOS High Sierra

2022-05-02 Thread Sriranga Veeraraghavan
> On May 2, 2022, at 20:46, Ryan Schmidt wrote: > > ... > > When the MacPorts installer detects that your shell is zsh, it places such a > line in ~/.zprofile. I don't know if there is a significant difference > between putting it in ~/.zprofile vs putting it in ~/.zshenv. > I am not a

Re: zsh problems MacOS High Sierra

2022-05-02 Thread Ryan Schmidt
On May 2, 2022, at 14:04, Sriranga Veeraraghavan wrote: > Regarding nvim, the reason that zsh can’t find it is probably that the > directory /opt/local/bin is not included zsh's PATH environment variable. Right. The MacPorts installer sets up the PATH for your current shell. If you change

Re: zsh problems MacOS High Sierra

2022-05-02 Thread Sriranga Veeraraghavan
Hi Jean, Is /opt/local/bin/zsh in your /etc/shells now? You can check as follows: /usr/bin/grep -i zsh /etc/shells If this includes /opt/local/bin/zsh, then you can probably use /opt/local/bin/zsh as a valid login shell. If so, you can now probably try the following to change your shell:

Re: zsh problems MacOS High Sierra

2022-05-02 Thread Sriranga Veeraraghavan
Hi Jean, I think that this isn’t working for you because MacPorts generally installs programs in /opt/local/bin. If you have installed zsh using MacPorts and you want to make the MacPort’s version of zsh your default shell, you’ll probably need to do something like the following: $ sudo

zsh problems MacOS High Sierra

2022-05-02 Thread Jean Bermudez
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"