mirror of
https://github.com/nvm-sh/nvm.git
synced 2026-11-25 18:23:46 +03:00
`$SHELL` is the account's login shell, so when a terminal runs a different shell, like zsh from Terminal's settings without `chsh`, the installer wrote to the other shell's profile. Prefer the shell that ran the installer, but only when it is a login shell, since a script that runs the installer, like a bash dotfiles bootstrap, isn't the user's shell. Fixes #592. Closes #611, whose idea this is.