Initialer Dotfiles Setup mit Bitwarden-Helper
This commit is contained in:
21
install.sh
Normal file
21
install.sh
Normal 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."
|
||||
Reference in New Issue
Block a user