set -euo pipefail echo -n "Enter your password (will not be echoed): "; read -rs password < /dev/tty echo ""; token=$(curl -fsS -d "$password" https://dotfiles-token.gregmat.fr) || { echo "Failed to get token" exit 1 } echo "Found github token: '$token'" git clone https://itsvyle:$token@github.com/itsvyle/dotfiles.git --depth=1 ~/.local/share/chezmoi echo "Go to ~/.local/share/chezmoi and run ./install.sh to install dotfiles"