Prepare v1.0 beta
This commit is contained in:
1 parent
654fa4a3b2
commit
e60ca6403b
10 files changed
+89
-131
No files matched your search
+14
-16
@@ -9,24 +9,22 @@ echo "==> Installiere Dotfiles..."
|
||||
|
||||
mkdir -p "$HOME/.config"
|
||||
|
||||
# Bash
|
||||
if [ -f "$DOTFILES_DIR/.bashrc" ]; then
|
||||
cp "$DOTFILES_DIR/.bashrc" "$HOME/.bashrc"
|
||||
fi
|
||||
if command -v rsync >/dev/null 2>&1; then
|
||||
rsync -a "$DOTFILES_DIR/.bashrc" "$HOME/" 2>/dev/null || true
|
||||
rsync -a "$DOTFILES_DIR/.gitconfig" "$HOME/" 2>/dev/null || true
|
||||
rsync -a "$DOTFILES_DIR/.tmux.conf" "$HOME/" 2>/dev/null || true
|
||||
|
||||
# Git
|
||||
if [ -f "$DOTFILES_DIR/.gitconfig" ]; then
|
||||
cp "$DOTFILES_DIR/.gitconfig" "$HOME/.gitconfig"
|
||||
fi
|
||||
if [ -d "$DOTFILES_DIR/.config" ]; then
|
||||
rsync -a --delete "$DOTFILES_DIR/.config/" "$HOME/.config/"
|
||||
fi
|
||||
else
|
||||
cp -f "$DOTFILES_DIR/.bashrc" "$HOME/" 2>/dev/null || true
|
||||
cp -f "$DOTFILES_DIR/.gitconfig" "$HOME/" 2>/dev/null || true
|
||||
cp -f "$DOTFILES_DIR/.tmux.conf" "$HOME/" 2>/dev/null || true
|
||||
|
||||
# tmux
|
||||
if [ -f "$DOTFILES_DIR/.tmux.conf" ]; then
|
||||
cp "$DOTFILES_DIR/.tmux.conf" "$HOME/.tmux.conf"
|
||||
fi
|
||||
|
||||
# komplette .config
|
||||
if [ -d "$DOTFILES_DIR/.config" ]; then
|
||||
cp -a "$DOTFILES_DIR/.config/." "$HOME/.config/"
|
||||
if [ -d "$DOTFILES_DIR/.config" ]; then
|
||||
cp -a "$DOTFILES_DIR/.config/." "$HOME/.config/"
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "==> Dotfiles erfolgreich installiert."
|
||||
Reference in new issue
Block a user