Dotfiles: Install-Skripte statt Stow, Clone nach ~/git-projekte

Dotfiles-rene nutzt eigene Install-Skripte (nvim, micro) und
Symlinks (oh-my-zsh custom, heic-scripts) statt GNU Stow.
Clone-Pfad geaendert von ~/dotfiles nach ~/git-projekte/dotfiles-rene.
This commit is contained in:
rene 2026-03-07 16:58:06 +01:00
parent 0702910e1c
commit b08902488f

View file

@ -59,14 +59,54 @@ ok "PrusaSlicer installiert"
# ── 4. Dot-Files ────────────────────────────────────────────────────────
echo -e "\n=== 4/5 Dot-Files ==="
if [[ ! -d ~/dotfiles ]]; then
git clone "$DOTFILES_REPO" ~/dotfiles
DOTFILES_DIR="$HOME/git-projekte/dotfiles-rene"
if [[ ! -d "$DOTFILES_DIR" ]]; then
mkdir -p "$HOME/git-projekte"
git clone "$DOTFILES_REPO" "$DOTFILES_DIR"
fi
# Neovim
if [[ -f "$DOTFILES_DIR/nvim/install-nvim-dotfiles.sh" ]]; then
bash "$DOTFILES_DIR/nvim/install-nvim-dotfiles.sh"
ok "Dot-Files: nvim"
fi
# Micro
if [[ -f "$DOTFILES_DIR/micro/install-micro-dotfiles.sh" ]]; then
bash "$DOTFILES_DIR/micro/install-micro-dotfiles.sh"
ok "Dot-Files: micro"
fi
# oh-my-zsh custom (Plugins, Themes, Aliase)
if [[ -d "$DOTFILES_DIR/oh-my-zsh/custom" ]] && [[ -d ~/.oh-my-zsh/custom ]]; then
for f in "$DOTFILES_DIR/oh-my-zsh/custom"/*.zsh; do
[[ -f "$f" ]] && ln -sf "$f" ~/.oh-my-zsh/custom/
done
# Custom Plugins
if [[ -d "$DOTFILES_DIR/oh-my-zsh/custom/plugins" ]]; then
for plugin_dir in "$DOTFILES_DIR/oh-my-zsh/custom/plugins"/*/; do
plugin_name=$(basename "$plugin_dir")
ln -sfn "$plugin_dir" ~/.oh-my-zsh/custom/plugins/"$plugin_name"
done
fi
# Custom Themes
if [[ -d "$DOTFILES_DIR/oh-my-zsh/custom/themes" ]]; then
for theme_dir in "$DOTFILES_DIR/oh-my-zsh/custom/themes"/*/; do
theme_name=$(basename "$theme_dir")
ln -sfn "$theme_dir" ~/.oh-my-zsh/custom/themes/"$theme_name"
done
fi
ok "Dot-Files: oh-my-zsh custom"
fi
# heic-scripts nach ~/bin
if [[ -d "$DOTFILES_DIR/heic-scripts" ]]; then
mkdir -p ~/bin
for script in "$DOTFILES_DIR/heic-scripts"/*; do
[[ -f "$script" ]] && ln -sf "$script" ~/bin/
done
ok "Dot-Files: heic-scripts → ~/bin"
fi
cd ~/dotfiles
for pkg in nvim oh-my-zsh micro bin heic-scripts; do
[[ -d "$pkg" ]] && stow "$pkg" && ok "Dot-Files: $pkg"
done
cd ~
# ── 5. XFCE Energieeinstellungen ────────────────────────────────────────
echo -e "\n=== 5/5 XFCE Energieeinstellungen ==="