Files
dotfiles/setup
2025-06-14 22:30:49 +02:00

56 lines
1.1 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
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)