Files
dotfiles/setup
2025-06-14 22:32:16 +02:00

58 lines
1.2 KiB
Plaintext
Executable File

<<<<<<< HEAD
#!/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"
=======
#!/usr/bin/env bash
set -e
echo "[+] Cloning submodules..."
git submodule update --init --recursive
find ./config/tmux -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 .
>>>>>>> ae6c9c8 (add tmux plugins)