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)