#!/bin/bash # omarchy:summary=Install a small mise-backed wrapper for a given tool. # omarchy:args= [command-name [bin-name]] if [[ -z $1 ]]; then echo "Usage: omarchy-mise-install [command-name [bin-name]]" exit 1 fi package=$1 command=${2:-$1} bin=${3:-$command} mkdir -p "$HOME/.local/bin" # These tools install and upgrade on first run, so mise's release cooldown would # hold a new version back for days after it ships. Exported rather than set on # the install line alone, so resolving the version to execute agrees with the # one just installed. rm -f "$HOME/.local/bin/$command" cat >"$HOME/.local/bin/$command" <