# this installs chezmoi and just on a machine running a distro # where these essential tools are not in the repositories # (most notably ubuntu) binaries="chezmoi just" # arch does provide chezmoi and just [ -x /usr/bin/pacman ] && { for binary in $binaries ; do pacman -Q $binary || sudo pacman -S --needed --noconfirm $binary done exit 0 } # for others (e.g. ubuntu), get them from lola if they're not already # there -- note: sometimes they are already installed from other # sources # e.g. snap for binary in $binaries ; do command $binary --version && continue dst=/usr/local/bin/$binary [ -f $dst ] || sudo curl -L -o $dst https://lola.lyderic.com/$binary sudo chmod -v +x $dst command $binary --version done # vim: ft=bash