#!/usr/bin/env bash set -e echo "[+] Cloning submodules..." git submodule update --init --recursive echo "[+] Creating Gitconfigs..." ( for config in $PWD/.gitconfig.d/*.gitconfig; do echo "[include]" echo " path = $config" done; ) > "$HOME/.gitconfig" echo "[+] Creating symlinks..." ln -sf "$PWD/.zshrc" "$HOME/.zshrc" ln -sf "$PWD/.p10k.zsh" "$HOME/.p10k.zsh" ln -sf "$PWD/.config" "$HOME/.config" ln -sf "$PWD/.alias.d" "$HOME/.alias.d" ln -sf "$PWD/.profile" "$HOME/.profile" if [ ! -f "$PWD/.zshenv" ]; then cp "$PWD/.zshenv.template" "$PWD/.zshenv" fi ln -sf "$PWD/.zshenv" "$HOME/.zshenv"