From 0484b535a2f69a0a74abbb9bb39a14e7f083f267 Mon Sep 17 00:00:00 2001 From: chrisaddy Date: Fri, 17 May 2024 16:01:32 -0400 Subject: [PATCH] pushing changes --- .gitignore | 3 +++ install.sh | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100755 install.sh diff --git a/.gitignore b/.gitignore index b6e4761..6e02c80 100644 --- a/.gitignore +++ b/.gitignore @@ -127,3 +127,6 @@ dmypy.json # Pyre type checker .pyre/ + +**/*.DS_Store +prefect diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..c6aaf0d --- /dev/null +++ b/install.sh @@ -0,0 +1,34 @@ +#!/usr/bin/env bash + +set -ex + +command_exists() { + command -v "$1" >/dev/null 2>&1 +} + +if [[ "$OSTYPE" == "darwin"* ]]; then + echo "You are running macOS." + + if command_exists nix; then + echo "Looks like you have nix set up already. Nice!" + + else + echo "Looks like Nix is not installed, doing so now. Pleaes follow the prompts." + sh <(curl -L https://nixos.org/nix/install) + fi + + # Continue with the rest of the script for macOS + # ... + +elif [[ "$OSTYPE" == "linux-gnu"* ]]; then + echo "You are running Linux." + # Add Linux-specific instructions here + # ... + +else + echo "Unsupported operating system." + exit 1 +fi + + +glow (ls)