diff options
Diffstat (limited to 'scripts/bootstrap-nvim-dict.sh')
| -rwxr-xr-x | scripts/bootstrap-nvim-dict.sh | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/scripts/bootstrap-nvim-dict.sh b/scripts/bootstrap-nvim-dict.sh deleted file mode 100755 index fa29728..0000000 --- a/scripts/bootstrap-nvim-dict.sh +++ /dev/null | |||
| @@ -1,33 +0,0 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | set -eu | ||
| 3 | |||
| 4 | SPELL_DIR="$HOME/.local/share/nvim/site/spell" | ||
| 5 | mkdir -p "$SPELL_DIR" | ||
| 6 | |||
| 7 | cd "$SPELL_DIR" | ||
| 8 | |||
| 9 | download() { | ||
| 10 | url="$1" | ||
| 11 | file=$(basename "$url") | ||
| 12 | |||
| 13 | if [ -f "$file" ]; then | ||
| 14 | echo "Skipping $file (already exists)" | ||
| 15 | return | ||
| 16 | fi | ||
| 17 | |||
| 18 | echo "Downloading $file..." | ||
| 19 | if command -v wget >/dev/null 2>&1; then | ||
| 20 | wget -q --show-progress "$url" | ||
| 21 | elif command -v curl >/dev/null 2>&1; then | ||
| 22 | curl -fLO "$url" | ||
| 23 | else | ||
| 24 | echo "ERROR: neither wget nor curl found" | ||
| 25 | exit 1 | ||
| 26 | fi | ||
| 27 | } | ||
| 28 | |||
| 29 | # Deutsche Wörterbücher | ||
| 30 | download "https://ftp.nluug.nl/pub/vim/runtime/spell/de.utf-8.spl" | ||
| 31 | download "https://ftp.nluug.nl/pub/vim/runtime/spell/de.utf-8.sug" | ||
| 32 | |||
| 33 | echo "Deutsche Wörterbücher für Neovim installiert!" | ||
