From 29f4e5ecb18fd237a62399a8322418c9ae5ec59d Mon Sep 17 00:00:00 2001 From: MorganGeek Date: Wed, 15 Jul 2020 22:41:03 +0200 Subject: [PATCH] feature: spelling check function, non interactive --- dot_zsh_functions | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dot_zsh_functions b/dot_zsh_functions index 5fa302d..47a6571 100644 --- a/dot_zsh_functions +++ b/dot_zsh_functions @@ -269,6 +269,13 @@ function invalid_file_refs() { done < <(filerefs "$1") } + +# Text search +# run aspell in non interactive mode, to list all mispelled words found +function checkenlist() { + aspell -d en list < "$1" | sort --unique --ignore-case +} + # File stats helpers # Find files bigger than X size and sort them by size function biggerthan() {