aboutsummaryrefslogtreecommitdiff
path: root/fzfdic.sh
diff options
context:
space:
mode:
Diffstat (limited to 'fzfdic.sh')
-rwxr-xr-xfzfdic.sh7
1 files changed, 6 insertions, 1 deletions
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