diff options
Diffstat (limited to 'fzfdic.sh')
-rwxr-xr-x | fzfdic.sh | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 |