Files
debian13-admin-workstation/install/09-dotfiles.sh
T
2026-09-27 18:31:39 +02:00

33 lines
665 B
Bash
Executable File

#!/usr/bin/env bash
set -e
PROJECT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
DOTFILES_DIR="$PROJECT_DIR/dotfiles"
echo "==> Installiere Dotfiles..."
mkdir -p "$HOME/.config"
# Bash
if [ -f "$DOTFILES_DIR/.bashrc" ]; then
cp "$DOTFILES_DIR/.bashrc" "$HOME/.bashrc"
fi
# Git
if [ -f "$DOTFILES_DIR/.gitconfig" ]; then
cp "$DOTFILES_DIR/.gitconfig" "$HOME/.gitconfig"
fi
# tmux
if [ -f "$DOTFILES_DIR/.tmux.conf" ]; then
cp "$DOTFILES_DIR/.tmux.conf" "$HOME/.tmux.conf"
fi
# komplette .config
if [ -d "$DOTFILES_DIR/.config" ]; then
cp -a "$DOTFILES_DIR/.config/." "$HOME/.config/"
fi
echo "==> Dotfiles erfolgreich installiert."