File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,12 +16,13 @@ apt-get update && apt-get install yarn -y
1616# # instsall nvm
1717curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
1818
19- export NVM_DIR=" $( [ -z " ${XDG_CONFIG_HOME-} " ] && printf %s " ${HOME} /.nvm" || printf %s " ${XDG_CONFIG_HOME} /nvm" ) "
20- [ -s " $NVM_DIR /nvm.sh" ] && \. " $NVM_DIR /nvm.sh" # This loads nvm
21-
2219# # setup and install oh-my-zsh
2320sh -c " $( curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh) "
2421cp -R /root/.oh-my-zsh /home/$USERNAME
2522cp /root/.zshrc /home/$USERNAME
2623sed -i -e " s/\/root\/.oh-my-zsh/\/home\/$USERNAME \/.oh-my-zsh/g" /home/$USERNAME /.zshrc
2724chown -R $USER_UID :$USER_GID /home/$USERNAME /.oh-my-zsh /home/$USERNAME /.zshrc
25+
26+ # # add nvm to ~/.zshrc
27+ echo " export NVM_DIR=\" $HOME /.nvm\" " >> ~ /.zshrc
28+ echo " [ -s \" $NVM_DIR /nvm.sh\" ] && \. \" $NVM_DIR /nvm.sh\" " >> ~ /.zshrc
You can’t perform that action at this time.
0 commit comments