Stvvks
Stvvks

Reputation: 41

Restart Terminal in Github Actions

Installed nvm and you have to close and reopen terminal to start using it. How would I do this for a Github Action workflow.

Upvotes: 1

Views: 1029

Answers (1)

Ortomala Lokni
Ortomala Lokni

Reputation: 62635

According to the documentation:

On Linux, after running the install script, if you get nvm: command not found or see no feedback from your terminal after you type command -v nvm, simply close your current terminal, open a new terminal, and try verifying again. Alternatively, you can run the following commands for the different shells on the command line:

bash: source ~/.bashrc

zsh: source ~/.zshrc

ksh: . ~/.profile

To answer your question, you just have to run the right startup file depending on the shell you use.

Upvotes: 1

Related Questions