Something went wrong. Try again.
Mirroring: https://github.com/MunifTanjim/scripts.sh
Something went wrong. Try again.
scripts.sh setup-chezmoi
370 B · 14 lines
at main
123456789101112131415#!/usr/bin/env bash
if type chezmoi >/dev/null 2>&1; then echo "Upgrading chezmoi..." chezmoi upgradeelse echo "Installing chezmoi..." curl -fsSL https://git.io/chezmoi | sh -s -- -b "${HOME}/.local/bin"fi
if ! test -L "/usr/local/bin/chezmoi"; then echo "Setting up binary: chezmoi" sudo ln -nsf "${HOME}/.local/bin/chezmoi" "/usr/local/bin/chezmoi"fi