X-Git-Url: https://git.r.bdr.sh/rbdr/dotfiles/blobdiff_plain/cd3948f4d8c338ed47ffd28f7cb92d5e6ced80e8..484003107180c171a169999e7a8eb161db509071:/install_dotfiles?ds=sidebyside 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