#!/usr/bin/env bash set -e echo "[+] Cloning submodules..." git submodule update --init --recursive find ./.config/tmux/plugins -type d -name '.git*' -prune -o -type f -print0 | xargs -0 dos2unix find ./.config/zsh/plugins -type d -name '.git*' -prune -o -type f -print0 | xargs -0 dos2unix find ./.config/zsh/themes -type d -name '.git*' -prune -o -type f -print0 | xargs -0 dos2unix echo "[+] Creating Gitconfigs..." ( for config in $PWD/.gitconfig.d/*.gitconfig; do echo "[include]" echo " path = $config" done; ) > "$HOME/.gitconfig" echo "[+] Creating symlinks..." if [ ! -f "$PWD/.zshenv" ]; then cp "$PWD/.zshenv.template" "$PWD/.zshenv" fi stow .