feat: env config
This commit is contained in:
@ -1,5 +1,12 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# install nvm
|
||||||
|
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash
|
||||||
|
|
||||||
|
# install pyenv
|
||||||
|
git clone https://github.com/pyenv/pyenv.git ~/.pyenv
|
||||||
|
git clone https://github.com/pyenv/pyenv-virtualenv.git $(pyenv root)/plugins/pyenv-virtualenv
|
||||||
|
|
||||||
# install fisher
|
# install fisher
|
||||||
curl https://git.io/fisher --create-dirs -sLo ~/.config/fish/functions/fisher.fish
|
curl https://git.io/fisher --create-dirs -sLo ~/.config/fish/functions/fisher.fish
|
||||||
|
|
||||||
|
|||||||
15
main.sh
15
main.sh
@ -2,19 +2,11 @@
|
|||||||
|
|
||||||
USER=t31m
|
USER=t31m
|
||||||
|
|
||||||
# we need to be root for this install script
|
|
||||||
if [[ $EUID -ne 0 ]]; then
|
|
||||||
echo "This script must be run as root"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Ubuntu Baseline Packages
|
|
||||||
|
|
||||||
# update repos + system
|
# update repos + system
|
||||||
apt get update && apt upgrade
|
apt get update && apt upgrade
|
||||||
|
|
||||||
# install env packages
|
# install env packages
|
||||||
apt install git fish fzf pyenv pyenv-virtualenv
|
apt install git fish fzf
|
||||||
|
|
||||||
# install docker stable, if this failes try below
|
# install docker stable, if this failes try below
|
||||||
curl -fsSL https://get.docker.com | sh
|
curl -fsSL https://get.docker.com | sh
|
||||||
@ -26,7 +18,4 @@ chmod +x /usr/local/bin/docker-compose
|
|||||||
|
|
||||||
usermod -aG docker t31m
|
usermod -aG docker t31m
|
||||||
|
|
||||||
# install nvm
|
echo "Initial Setup Complete. Please run fish_setup.sh for env setup"
|
||||||
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user