Vim Konfiguration
This commit is contained in:
21
Vim/install-vim.sh
Normal file
21
Vim/install-vim.sh
Normal file
@@ -0,0 +1,21 @@
|
||||
#!/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
|
||||
|
||||
|
Reference in New Issue
Block a user