From b2bdbb94e5171133853e80de6af5b6605477ce4c Mon Sep 17 00:00:00 2001 From: InigoGutierrez Date: Sat, 20 Apr 2019 15:27:06 +0200 Subject: Added Spanish dictionary. --- fzfdic.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'fzfdic.sh') diff --git a/fzfdic.sh b/fzfdic.sh index 5b46efb..0cd457d 100755 --- a/fzfdic.sh +++ b/fzfdic.sh @@ -1,3 +1,8 @@ #!/bin/sh -cat /usr/share/dict/cracklib-small | fzf -e +dict="$(printf "EN\nES" | fzf -e --prompt="Choose a dictionary>")" +if [ "$dict" = "EN" ]; then + fzf -e --prompt="EN" < /usr/share/dict/words.txt +elif [ "$dict" = "ES" ]; then + fzf -e --prompt="ES" < /usr/share/dict/palabras.txt +fi -- cgit v1.2.1