Initial commit
This commit is contained in:
1 parent
cb3ea938ed
commit
ab3bf143a9
12 files changed
+260
-32
No files matched your search
@@ -0,0 +1,32 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
PROJECT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
DOTFILES_DIR="$PROJECT_DIR/dotfiles"
|
||||
|
||||
echo "==> Installiere Dotfiles..."
|
||||
|
||||
mkdir -p "$HOME/.config"
|
||||
|
||||
# Bash
|
||||
if [ -f "$DOTFILES_DIR/.bashrc" ]; then
|
||||
cp "$DOTFILES_DIR/.bashrc" "$HOME/.bashrc"
|
||||
fi
|
||||
|
||||
# Git
|
||||
if [ -f "$DOTFILES_DIR/.gitconfig" ]; then
|
||||
cp "$DOTFILES_DIR/.gitconfig" "$HOME/.gitconfig"
|
||||
fi
|
||||
|
||||
# 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/"
|
||||
fi
|
||||
|
||||
echo "==> Dotfiles erfolgreich installiert."
|
||||
Reference in new issue
Block a user