setup-desktop: source ~/.secrets in .zshrc fuer API-Keys

This commit is contained in:
rene 2026-03-15 12:44:54 +01:00
parent 8b911b3889
commit 44872306eb
2 changed files with 241 additions and 0 deletions

View file

@ -138,6 +138,14 @@ if [[ -f "$DOTFILES_DIR/zsh/install-zsh-dotfiles.sh" ]]; then
ok "Dot-Files: .zshrc"
fi
# ~/.secrets fuer API-Keys (source in .zshrc eintragen)
if ! grep -q 'source ~/.secrets' ~/.zshrc 2>/dev/null; then
echo '' >> ~/.zshrc
echo '# API-Keys (nicht ins Repo!)' >> ~/.zshrc
echo '[[ -f ~/.secrets ]] && source ~/.secrets' >> ~/.zshrc
ok "source ~/.secrets in .zshrc eingetragen"
fi
# .p10k.zsh (vom Mac kopieren, falls im Repo vorhanden, sonst Wizard beim ersten Start)
if [[ -f "$DOTFILES_DIR/.p10k.zsh" ]]; then
cp "$DOTFILES_DIR/.p10k.zsh" ~/.p10k.zsh
@ -205,3 +213,5 @@ echo " 1. Synology Drive Client installieren (.deb von synology.com)"
echo " 2. Thunderbird starten → Profil aus Synology Drive einbinden"
echo " 3. Brave starten → Synchronisation einrichten"
echo " 4. Falls p10k-Icons fehlen: Terminal-Schriftart auf 'MesloLGS NF' setzen"
echo " 5. API-Key aus Bitwarden in ~/.secrets eintragen:"
echo " echo 'export ANTHROPIC_API_KEY=\"sk-ant-...\"' > ~/.secrets && chmod 600 ~/.secrets"