Using aspell for spell checking.
This commit is contained in:
5
git/.aspell.en_US.per
Normal file
5
git/.aspell.en_US.per
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
personal_ws-1.1 en 0
|
||||||
|
FAXM
|
||||||
|
BLOT
|
||||||
|
Lakos
|
||||||
|
Vundle
|
||||||
@@ -32,11 +32,13 @@
|
|||||||
# 3. Move this file into your repository
|
# 3. Move this file into your repository
|
||||||
# $ mv commit-msg /path/to/repo/.git/hooks
|
# $ mv commit-msg /path/to/repo/.git/hooks
|
||||||
# $ chmod +x /path/to/repo/.git/hooks/commit-msg
|
# $ chmod +x /path/to/repo/.git/hooks/commit-msg
|
||||||
#
|
CHECK=$(cat $1 | aspell --lang=en_US list --add-extra-dicts=$HOME/.aspell.en_US.per)
|
||||||
CHECK=$(cat $1 | hunspell -d en_US -l)
|
#CHECK=$(cat $1 | hunspell -s -d en_US,${HOME}/devel/scripts/git/my_dictionary -l)
|
||||||
if [ "${CHECK}" != "" ]; then
|
if [ "${CHECK}" != "" ]; then
|
||||||
echo "Spell Check Error: ${CHECK}"
|
echo "Spell Check Error:"
|
||||||
echo "Message: $(cat $1)"
|
#cat $1 | hunspell -a -d en_US,${HOME}/devel/scripts/git/my_dictionary -l
|
||||||
|
cat $1 | aspell -a --lang=en_US list --add-extra-dicts=$HOME/.aspell.en_US.per
|
||||||
|
echo "Use --no-verify if you want to commit."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user