Initialer Dotfiles Setup mit Bitwarden-Helper

This commit is contained in:
2026-02-10 13:42:21 +01:00
commit 0d0bb37d4c
4 changed files with 222 additions and 0 deletions

21
install.sh Normal file
View File

@@ -0,0 +1,21 @@
#!/usr/bin/env bash
# 1. Plugins installieren (falls nicht vorhanden)
ZSH_CUSTOM=${ZSH_CUSTOM:-~/.oh-my-zsh/custom}
mkdir -p "$ZSH_CUSTOM/plugins"
plugins=(zsh-autosuggestions zsh-syntax-highlighting zsh-completions)
for p in "${plugins[@]}"; do
if [ ! -d "$ZSH_CUSTOM/plugins/$p" ]; then
echo "Installiere $p..."
git clone "https://github.com/zsh-users/$p" "$ZSH_CUSTOM/plugins/$p"
fi
done
# 2. Symlinks setzen
ln -sf ~/dotfiles/zsh_func_d ~/.zsh_func_d
ln -sf ~/dotfiles/zshrc_template ~/.zshrc
mkdir -p ~/.local/bin
ln -sf ~/dotfiles/bin/git-bw-helper ~/.local/bin/git-bw-helper
echo "✅ Installation abgeschlossen! Bitte 'source ~/.zshrc' ausführen."