Replace install.sh, making bootstrap.sh instead.
This commit is contained in:
parent
e2320121fb
commit
59d28c3745
1 changed files with 0 additions and 116 deletions
116
install.sh
116
install.sh
|
@ -1,116 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
function install_utilities() {
|
||||
sudo apt install vim neovim stow tmux htop ctags
|
||||
}
|
||||
|
||||
function install_docker() {
|
||||
if [ -x "$(command -v docker)" ]; then
|
||||
echo "Docker is already installed; skipping..."
|
||||
return
|
||||
fi
|
||||
|
||||
# install the prereqs
|
||||
sudo apt install apt-transport-https ca-certificates curl software-properties-common
|
||||
|
||||
# add the docker key
|
||||
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
|
||||
|
||||
# add the docker repo and update apt
|
||||
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable"
|
||||
sudo apt update
|
||||
|
||||
# install it
|
||||
sudo apt install docker-ce
|
||||
sudo usermod -aG docker ${USER}
|
||||
}
|
||||
|
||||
function install_docker_compose() {
|
||||
if [ -x "$(command -v docker-compose)" ]; then
|
||||
echo "Docker Compose is already installed; skipping..."
|
||||
return
|
||||
fi
|
||||
|
||||
# this makes me uncomfortable
|
||||
sudo curl -L "https://github.com/docker/compose/releases/download/1.22.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
|
||||
sudo chmod +x /usr/local/bin/docker-compose
|
||||
}
|
||||
|
||||
function install_asdf() {
|
||||
if [ -x "$(command -v asdf)" ]; then
|
||||
echo "asdf is already installed; skipping..."
|
||||
return
|
||||
fi
|
||||
|
||||
# install prereqs
|
||||
sudo apt install automake libssl-dev autoconf libncurses5-dev
|
||||
|
||||
# install the tool
|
||||
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.6.0
|
||||
|
||||
}
|
||||
|
||||
function install_google_cloud_sdk() {
|
||||
if [ -x "$(command -v gsutil)" ]; then
|
||||
echo "google cloud sdk is already installed; skipping..."
|
||||
return
|
||||
fi
|
||||
|
||||
sudo snap install google-cloud-sdk --classic
|
||||
}
|
||||
|
||||
function install_pyenv() {
|
||||
if [ -x "$(command -v pyenv)" ]; then
|
||||
echo "pyenv is already installed; skipping..."
|
||||
return
|
||||
fi
|
||||
|
||||
# install the prereqs
|
||||
sudo apt install -y make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev xz-utils tk-dev libffi-dev liblzma-dev
|
||||
|
||||
# we sure do love installing things from random scripts on github these days -_-
|
||||
curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash
|
||||
}
|
||||
|
||||
# Note: this must be run *after* pyenv is setup and in use
|
||||
function setup_pynvim() {
|
||||
pip3 install --user --upgrade pynvim
|
||||
pip3 install --user --upgrade jedi
|
||||
}
|
||||
|
||||
function install_ctags() {
|
||||
sudo apt install autoconf
|
||||
mkdir -p ~/.install
|
||||
cd ~/.install
|
||||
git clone https://github.com/universal-ctags/ctags.git
|
||||
cd ctags
|
||||
./autogen.sh
|
||||
./configure
|
||||
make
|
||||
sudo make install
|
||||
}
|
||||
|
||||
function install_wtfutil() {
|
||||
mkdir -p ~/.install
|
||||
mkdir -p ~/.bin
|
||||
cd ~/.install
|
||||
wget -O wtfutil.tar.gz https://github.com/wtfutil/wtf/releases/download/v0.20.0/wtf_0.20.0_linux_amd64.tar.gz
|
||||
tar xvfz wtfutil.tar.gz --one-top-level=wdir --strip-components=1
|
||||
cp ./wdir/wtfutil ~/.bin/
|
||||
}
|
||||
|
||||
function install_git_latest() {
|
||||
sudo add-apt-repository ppa:git-core/ppa
|
||||
sudo apt update
|
||||
sudo apt install git
|
||||
}
|
||||
|
||||
#install_utilities
|
||||
#install_docker
|
||||
#install_docker_compose
|
||||
#install_asdf
|
||||
#install_google_cloud_sdk
|
||||
#install_pyenv
|
||||
#install_ctags
|
||||
#install_wtfutil
|
||||
#install_git_latest
|
Loading…
Reference in a new issue