remove source

This commit is contained in:
Ryan Bakkes 2022-09-29 14:21:32 +02:00
parent 082355aee6
commit 0cbb8a326d
2 changed files with 1 additions and 6 deletions

View File

@ -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
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
source ~/.zshrc
fi
# 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 '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm' >> ~/.bashrc
source ~/.bashrc
# install latest version of node
nvm install node

View File

@ -5,6 +5,4 @@ git clone https://github.com/ohmyzsh/ohmyzsh.git ~/.oh-my-zsh
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
# set zsh as main terminal
chsh -s $(which zsh)
source ~/.zshrc
chsh -s $(which zsh)