22 lines
685 B
Bash
22 lines
685 B
Bash
#!/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."
|