#!/usr/bin/env bash set -Eeuo pipefail usage() { cat <<'EOF' Quicksh 0.1.0 — Your shell. Your tools. One command away. Usage: bash main.sh [--help|-h|--version] Available standalone scripts: main.sh Show this guide. No system changes. dev.sh Report workstation tools and setup guidance. docker.sh Check the Docker client and daemon connection. arch.sh Inspect Arch Linux; optionally install developer essentials. ubuntu.sh Inspect Ubuntu; optionally install developer essentials. tailscale.sh Check Tailscale; explicitly install/join using a private key file. Supported systems: Arch Linux and Ubuntu, with Bash 4 or newer. main.sh also displays this guide wherever Bash and cat are available. dev.sh and docker.sh can report on other Linux distributions, but only provide setup guidance for Arch Linux and Ubuntu. Derivatives are not treated as supported distributions by the distribution-specific helpers. Download each script separately from https://sh.mishalshanavas.in. Inspect the downloaded file, check it with bash -n, then run bash FILE --help. HTTPS protects transport; it does not prove that a script is safe. arch.sh --install and ubuntu.sh --install require interactive confirmation. tailscale.sh --setup previews installation, service and enrollment changes; it requires confirmation or explicit --yes and a separately supplied key file. EOF } main() { if (( $# > 1 )); then printf 'quicksh: expected at most one option. Use --help.\n' >&2 return 2 fi case "${1:-}" in ''|--help|-h) usage ;; --version) printf 'Quicksh 0.1.0\n' ;; *) printf 'quicksh: unsupported option: %s. Use --help.\n' "$1" >&2; return 2 ;; esac } main "$@"