bin/spell: build wordlist with proper newlines
This commit is contained in:
parent
8bfa09f3c7
commit
7d299bda9c
|
@ -12,7 +12,7 @@ result=$(echo "$@" | aspell -a | tail -n-2)
|
||||||
if [[ "$result" == '*' ]]; then
|
if [[ "$result" == '*' ]]; then
|
||||||
echo "$@"
|
echo "$@"
|
||||||
else
|
else
|
||||||
words=$(echo "$result" | sed 's/[:,] /\n/g' | tail -n +2)
|
words=$(echo "$result" | sed $'s/[:,] /\\\n/g' | tail -n +2)
|
||||||
if (( $(wc -l <<< "$words") > 1 )) && command -v 'fzf' >/dev/null; then
|
if (( $(wc -l <<< "$words") > 1 )) && command -v 'fzf' >/dev/null; then
|
||||||
fzf <<< "$words"
|
fzf <<< "$words"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue