blob: 9ffde0fbcedbb86fd46d399be50e53c51e8014a6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#!/bin/sh
set -eu
SPELL_DIR="$HOME/.local/share/nvim/site/spell"
mkdir -p "$SPELL_DIR"
cd "$SPELL_DIR"
download() {
url="$1"
file=$(basename "$url")
if [ -f "$file" ]; then
echo "Skipping $file (already exists)"
return
fi
echo "Downloading $file..."
if command -v wget >/dev/null 2>&1; then
wget -q --show-progress "$url"
elif command -v curl >/dev/null 2>&1; then
curl -LO "$url"
else
echo "ERROR: neither wget nor curl found"
exit 1
fi
}
# Deutsche Wörterbücher
download "https://ftp.nluug.nl/pub/vim/runtime/spell/de.utf-8.spl"
download "https://ftp.nluug.nl/pub/vim/runtime/spell/de.utf-8.sug"
echo "Deutsche Wörterbücher für Neovim installiert!"
|