dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE

languagetool-vim (217B)


      1 #!/bin/sh
      2 set -eu
      3 
      4 if [ "$#" -lt 1 ]; then
      5     f="$(mktemp)"
      6     cat > "$f"
      7 else
      8     f="$1"
      9 fi
     10 
     11 languagetool -l en-US \
     12     --languagemodel /usr/share/ngrams --word2vecmodel /usr/share/word2vec \
     13     "$f" 2>/dev/null