#!/bin/bash

set -e

mkdir -p ~/nexus-tools

wget https://gitlab.nexdev.uk/pub/nexus-tools/-/raw/master/run.sh -O ~/nexus-tools/nexus-tools.sh
wget https://gitlab.nexdev.uk/pub/nexus-tools/-/raw/master/NEXUS_TOOLS_VERSION -O ~/nexus-tools/VERSION

chmod +x ~/nexus-tools/nexus-tools.sh

echo 'alias nexus="~/nexus-tools/nexus-tools.sh"' >> ~/.bashrc