From 4b75fda8be45e34143a4427cc9842e30cdc6afeb Mon Sep 17 00:00:00 2001 From: "Carol (Nichols || Goulding)" Date: Tue, 13 Dec 2016 16:40:18 -0500 Subject: [PATCH] Try telling aspell that the current dir is its home dir too Idk. http://unix.stackexchange.com/questions/325869/aspell-how-to-ignore-words-permanently --- spellcheck.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spellcheck.sh b/spellcheck.sh index 305ae9a8a..f6faef6b7 100755 --- a/spellcheck.sh +++ b/spellcheck.sh @@ -32,7 +32,7 @@ aspell --version shopt -s nullglob -dict_filename=./dictionary.txt +dict_filename=dictionary.txt markdown_sources=(./src/*.md) mode="check" @@ -58,8 +58,8 @@ elif [[ "$mode" == "list" ]]; then declare -i retval=0 for fname in "${markdown_sources[@]}"; do - echo "command = aspell --ignore 3 --personal=\"$dict_filename\" \"$mode\" < \"$fname\"" - command=$(aspell --ignore 3 --personal="$dict_filename" "$mode" < "$fname") + echo "command = aspell --home-dir=. --ignore 3 --personal=\"$dict_filename\" \"$mode\" < \"$fname\"" + command=$(aspell --home-dir=. --ignore 3 --personal="$dict_filename" "$mode" < "$fname") if [[ -n "$command" ]]; then for error in $command; do # TODO: Find more correct way to get line number