]> git.r.bdr.sh - rbdr/dotfiles/blobdiff - install_dotfiles
Add essential provisioning
[rbdr/dotfiles] / install_dotfiles
index d534bafef3bcdc5f5e421443243c03ca656aca5d..b4fa7f8e8989a394bf0321a1b350f36c4b3d4d3e 100755 (executable)
@@ -1,5 +1,19 @@
 #!/usr/bin/env sh
 
 #!/usr/bin/env sh
 
+echo "Installing essential software"
+
+if command -v brew &>  /dev/null; then
+  cat ./provisioning/brew_essential | xargs brew install
+else
+  if command -v apt &>  /dev/null; then
+    echo "Warning: ASDF needs to be installed manually"
+    cat ./provisioning/apt_essential | xargs apt install
+  else
+    echo "Error: No valid package manager. Make sure brew or apt are available."
+    exit 1
+  fi
+fi
+
 echo "Linking runcoms"
 
 # hush login
 echo "Linking runcoms"
 
 # hush login