remove source
This commit is contained in:
parent
082355aee6
commit
0cbb8a326d
@ -5,14 +5,11 @@ wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
|
|||||||
if [[ $(which zsh) == "/usr/bin/zsh" ]]; then
|
if [[ $(which zsh) == "/usr/bin/zsh" ]]; then
|
||||||
echo 'export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"' >> ~/.zshrc
|
echo 'export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"' >> ~/.zshrc
|
||||||
echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm' >> ~/.zshrc
|
echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm' >> ~/.zshrc
|
||||||
source ~/.zshrc
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# always put in bashrc aswell, so that the user can always rely on the standard shell
|
# always put in bashrc aswell, so that the user can always rely on the standard shell
|
||||||
echo 'export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"' >> ~/.bashrc
|
echo 'export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"' >> ~/.bashrc
|
||||||
echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm' >> ~/.bashrc
|
echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm' >> ~/.bashrc
|
||||||
source ~/.bashrc
|
|
||||||
|
|
||||||
|
|
||||||
# install latest version of node
|
# install latest version of node
|
||||||
nvm install node
|
nvm install node
|
@ -6,5 +6,3 @@ cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
|
|||||||
|
|
||||||
# set zsh as main terminal
|
# set zsh as main terminal
|
||||||
chsh -s $(which zsh)
|
chsh -s $(which zsh)
|
||||||
|
|
||||||
source ~/.zshrc
|
|
Loading…
x
Reference in New Issue
Block a user