-
-
Notifications
You must be signed in to change notification settings - Fork 9.1k
Open
Labels
installing nvm: profile detectionIssues with nvm's own install script, related to figuring out the right profile file.Issues with nvm's own install script, related to figuring out the right profile file.shell: zsh
Description
On macOS there setup script mentioned bash completions, but it should be zsh completions instead. An easy fix, but it will save hours for many macOS users. Please fix it.
After running the following command to install NVM.
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.2/install.sh | bash
my .zshrc file had the following added.
export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
After restarting the terminal, it appeared.
zsh compinit: insecure directories, run compaudit for list. Ignore insecure directories and continue [y] or abort compinit [n]?
After changing
bash_completion
tozsh_completion
, the error disappeared.
hata6502
Metadata
Metadata
Assignees
Labels
installing nvm: profile detectionIssues with nvm's own install script, related to figuring out the right profile file.Issues with nvm's own install script, related to figuring out the right profile file.shell: zsh