aboutsummaryrefslogtreecommitdiff
path: root/install_dotfiles
diff options
context:
space:
mode:
Diffstat (limited to 'install_dotfiles')
-rwxr-xr-xinstall_dotfiles14
1 files changed, 14 insertions, 0 deletions
diff --git a/install_dotfiles b/install_dotfiles
index d534baf..b4fa7f8 100755
--- a/install_dotfiles
+++ b/install_dotfiles
@@ -1,5 +1,19 @@
#!/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