26 lines
484 B
Bash
Executable File
26 lines
484 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
echo "[+] Cloning submodules..."
|
|
git submodule update --init --recursive
|
|
|
|
find . -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 .
|