From 44d8c3c67716d35ccc44d884da0f72a39dc11b1b Mon Sep 17 00:00:00 2001 From: Ade Attwood Date: Fri, 5 Jan 2024 19:43:55 +0000 Subject: [PATCH] feat(core): add a script for quickly getting stuff installed --- scripts/install.bash | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 scripts/install.bash diff --git a/scripts/install.bash b/scripts/install.bash new file mode 100755 index 0000000..3c6f609 --- /dev/null +++ b/scripts/install.bash @@ -0,0 +1,23 @@ +#!/bin/bash + +if [ -x $(command -v zypper) ]; then + sudo zypper install --type pattern devel_basis + sudo zypper install libopenssl-deve +else + echo "ERROR: Package manager not found. Could not install" +fi + +if [ ! -x $(command -v cargo) ]; then + curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh + source "$HOME/.cargo/env" +fi + +if [ ! -x $(command -v configz) ]; then + cargo install --git https://github.com/AdeAttwood/Configz +fi + +if [ ! -d ~/Code/src/github.com/AdeAttwood/Dotfiles ]; then + git clone https://github.com/AdeAttwood/Dotfiles.git ~/Code/src/github.com/AdeAttwood/Dotfiles +fi + +echo "cd ~/Code/src/github.com/AdeAttwood/Dotfiles"