Install Unison with unison-up

Unison-Up Setup Script

The unison-up script automates the process of downloading, installing, and managing Unison, a modern functional programming language. Also, checkout the Repository hosted on Codeberg, feedback is always welcome.

Features

  • Detects your operating system (Linux, Mac, Cygwin, MinGw, or Unknown).
  • Allows you to specify the Unison version, installation directory, and binary directory.
  • Provides placeholders for OS-specific download, installation, and environment setup logic.

Prerequisites

  • A Unix-like environment (Linux, macOS, or Windows with WSL/Cygwin/MinGw).
  • sh compatible shell.
  • cut for parsing output.
  • curl for downloading files (if not already installed).
  • sort Optional (--update) for comparing versions(if not already installed).

Quickstart

Run

curl -L https://codeberg.org/montecito/unison-up/raw/branch/main/unison-up.sh | sh

to run unison-up.sh with it's default values.

The script will place itself in the default installation directory and create a symlink in the default binary directory. It can update itself, when called with the corresponding option.

Further information

For further information checkout the homepage and repository links above.