This script automates the process of downloading, installing, and managing Unison, a modern functional programming language. The script repository is hosted on Codeberg.
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).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.
Download the script from the provided location and save it as unison-up.sh.
chmod +x unison-up.sh
./unison-up.sh [OPTIONS]
-v, --version VERSION: Specify the version of Unison to install (default: latest).-d, --dir DIR: Specify the installation directory (default: ~/.unison).-b, --bin-dir DIR: Specify the directory for binary links (default: ~/.local/bin).-u, --update: Checks for new Unison Version.-U, --update-script: Update unison-up.sh script.-h, --help: Display the help message../unison-up.sh -v 1.1.0 -d ~/lib/unison -b ~/bin
Adjust the default installation and binary directories as needed.
This script is provided as-is and is not affiliated with the official Unison project. Use at your own risk.
Feel free to fork this script and contribute improvements or additional features via pull requests.
Also check out the UnisonKindergarten for further helper scripts and Unison ideas.