dotfiles/setup.sh

21 lines
497 B
Bash
Raw Normal View History

2021-07-25 16:13:54 +00:00
#!/bin/bash
ME="/home/$(whoami)"
CFG="$(ME)/.config"
DOTFILES="$(ME)/dotfiles"
BINDIR="$(ME)/dotfiles/bin"
echo "I'm assuming you're doing a fresh install. Send a SIGTERM anytime you like."
2021-07-27 18:59:49 +00:00
sudo apt get -y
2021-07-25 16:13:54 +00:00
if test ! $(which fnm); then
echo "Installing fnm"
/bin/sh curl -fsSL https://fnm.vercel.app/install | bash -s -- --skip-shell
$(ME)/.fnm/fnm fnm install lts
fi
if test ! $(which go); then
echo "Installing go"
/bin/sh wget https://golang.org/dl/go1.16.6.linux-amd64.tar.gz
fi