Files
linux-scripts/Vim/install-vim.sh
2025-05-23 23:10:48 +02:00

22 lines
400 B
Bash

#!/bin/bash
TARGET_DIR="~/"
# Vim installieren, wenn es noch nicht installiert ist
command -v vim >/dev/null 2>&1 || sudo apt update && sudo apt install -y vim
# Vim-Konfiguration kopieren
if [ -d "~/.Vim" ]; then
echo "Ordner existiert bereits"
else
cp -r "./.Vim" $TARGET_DIR
fi
if [ -f "~/.vimrc" ]; then
echo "Vim Konfigurationsdatei existiert bereits"
else
cp "./vimrc" $TARGET_DIR
fi