Open jwalsh2me opened 5 years ago
I tried zsh+nodejs in Ubuntu:
/etc/passwd
file:john:x:1000:1000:,,,:/home/john:/bin/zsh
root:x:0:0:root:/root:/bin/zsh
#https://github.com/nodesource/distributions/blob/master/README.md
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
apt install nodejs
Thanks @Biswa96. Agreed if I install nodejs outside of pengwin-setup I do get the expected behavior. I was noting that the problem exists when you use pengwin-setup to install and setup zsh as default, then add other tools they do not always get added to the .zshrc -- looks like some scripts assume .bashrc.
Thanks for testing!
I think this might be a more widespread issue. I recently used pengwin-setup
to setup zsh, restarted the shell, and then used pengwin-setup
to install python. It seemed to update the bash files just as you describe, so I had to manually modify my zshrc as well.
This should fix this problem with ZSH and Node:
This still doesn't work. I installed zsh and ohmyzsh first. Rebooted the terminal and installed n through pengwin setup and still it adds the path to .bashrc and not zsh
any ideas @crramirez
We will check following your steps.
Describe the bug Installed ZSH as the dafault shell, using pengwin-setup installs tools into bash.
To Reproduce Steps to reproduce the behavior: install zsh via pengwin-setup, set as default install nodjs etc...
Expected behavior node to be added to zsh since it was default
Screenshots Output:
jwalsh2@surprise node --version zsh: command not found: node
✘ jwalsh2@surprise bash jwalsh2@surprise:~$ node --version v12.2.0 jwalsh2@surprise:~$
Additional context
I think that after you install zsh as the default shell, pengwin-setup still assumes you have bash. I have seem similar comments in Issues for FISH.