Add NVM to be installed on all systems

This commit is contained in:
Cyryl Płotnicki 2018-10-15 14:29:14 +02:00
parent 33ce66171c
commit 5de26309f7
4 changed files with 11 additions and 3 deletions

View file

@ -1 +1 @@
/Users/cyplo/dev/dotfiles/.hyper_plugins
/home/cyryl/dev/dotfiles/.hyper_plugins

View file

@ -15,7 +15,7 @@ export KEYTIMEOUT=1
export VAGRANT_DEFAULT_PROVIDER=virtualbox
export FZF_DEFAULT_COMMAND='rg --files --no-ignore --hidden --follow --glob "!.git/*"'
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

View file

@ -1,4 +1,6 @@
#!/bin/bash
set -e
set -o pipefail
SUDO=""
if [[ -z $NOSUDO ]]; then
@ -60,7 +62,12 @@ mkdir -p ~/.config/Code/User
ln -vfs "$DIR/.config/Code/User/settings.json" ~/.config/Code/User/settings.json
ln -vfs "$DIR/.config/Code/User/keybindings.json" ~/.config/Code/User/keybindings.json
mkdir -p ~/.cargo/
echo "all links done"
echo "adding NVM"
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
echo "sourcing env"
source ~/.setenv
# symlink 'nodejs' as node on some systems

View file

@ -5,7 +5,7 @@ set -v
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get -y --fix-missing install apt-file aptitude aria2 atop cmake curl dkms freecad gajim git glances gnupg2 golang gparted gsmartcontrol intltool kdiff3 keepass2 libatk1.0-dev libbonoboui2-dev libcairo2-dev libgnome2-dev libgnomeui-dev libgtk2.0-dev libncurses5-dev libx11-dev libxpm-dev libxt-dev linux-kernel-headers lm-sensors meld mercurial nodejs npm pv python-dev python-pip python3-pip retext ruby-dev silversearcher-ag solaar terminator tmux vim whois zsh dirmngr fail2ban glances atop syncthing evolution docker.io yasm libfuse-dev libwxgtk3.0-dev net-tools software-properties-common coreutils
sudo apt-get -y --fix-missing install apt-file aptitude aria2 atop cmake curl dkms freecad gajim git glances gnupg2 golang gparted gsmartcontrol intltool kdiff3 keepass2 libatk1.0-dev libbonoboui2-dev libcairo2-dev libgnome2-dev libgnomeui-dev libgtk2.0-dev libncurses5-dev libx11-dev libxpm-dev libxt-dev linux-kernel-headers lm-sensors meld mercurial nodejs npm pv python-dev python-pip python3-pip retext ruby-dev terminator tmux vim whois zsh dirmngr fail2ban glances atop syncthing evolution docker.io yasm libfuse-dev libwxgtk3.0-dev net-tools software-properties-common coreutils
if [[ -z $USER ]]; then
USER=`whoami`
@ -26,6 +26,7 @@ if [[ -z $NO_SYSTEMCTL ]]; then
sudo systemctl restart docker
sudo systemctl enable fail2ban
sudo systemctl restart fail2ban
sudo systemctl enable --now syncthing@cyryl.service
fi
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"