blob: 670e5f20fb61de1ca4d39792c33bdbc945739587 (
plain)
1
2
3
4
5
6
7
8
|
#!/bin/sh
dict="$(printf "EN\nES" | fzf -e -i --prompt="Choose a dictionary>")"
if [ "$dict" = "EN" ]; then
fzf -e -i --prompt="EN>" < /usr/share/dict/words.txt
elif [ "$dict" = "ES" ]; then
fzf -e -i --prompt="ES>" < /usr/share/dict/palabras.txt
fi
|