#!/bin/bash URL="https://gitlab.com/alexandre_lestruhaut/dotfiles/-/archive/main/dotfiles-main.zip?ref_type=heads" OUTPUT="$HOME/.dotfiles" if ! command -v stow >/dev/null 2>&1; then echo "stow is not installed" fi if command -v wget >/dev/null 2>&1; then wget -O "$OUTPUT" "$URL" elif command -v curl >/dev/null 2>&1; then curl -L -o "$OUTPUT" "$URL" else echo "Error: Neither wget nor curl is installed." >&2 exit 1 fi cd "$HOME/.dotfiles" || exit 1 stow .