From e732440189c7c70e9e035fde204202601599192c Mon Sep 17 00:00:00 2001 From: Ibrahim Mkusa Date: Mon, 29 Jul 2024 07:32:52 -0400 Subject: [PATCH] setup script v0.1 --- install.sh | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 install.sh diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..84a9a26 --- /dev/null +++ b/install.sh @@ -0,0 +1,27 @@ +#!/usr/bin/env bash + +# Author : Ibrahim Mkusa +# Description: installs and sets up core environment for my dev work on servers + +set -e # subshells inherit environment from parent + +# detect which family of distro i'm on +if [[ -f /etc/os-release ]]; then + . /etc/os-release + + case "$ID_LIKE" in + debian) + echo "Running on debian-family. Installing core packages" + sudo apt install -y vim-nox git stow curl ranger tmux + ;; + fedora) + echo "Running on debian-family. Installing core packages" + sudo apt install -y vim-enhanced git stow curl ranger tmux + esac +else + echo "You are running an unrecognized family of os. Quitting..." + exit 1 +fi + +# use gnu stow to symlink config files to home directory +stow bash git ranger shellenv tmux vim