aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorInigoGutierrez <inigogf.95@gmail.com>2020-03-04 23:18:24 +0100
committerInigoGutierrez <inigogf.95@gmail.com>2020-03-04 23:18:24 +0100
commit384a2b36c86be5e79913a1861d8eb23ec3bf65cb (patch)
tree080d32c7b769ad858d85ba385f3e8e1d5195c04b
parentdc91fa53ff7726a0fb0f12099fe331aee7ae964f (diff)
downloadscripts-384a2b36c86be5e79913a1861d8eb23ec3bf65cb.tar.gz
scripts-384a2b36c86be5e79913a1861d8eb23ec3bf65cb.zip
fzfdic.sh now uses global configuration for dictionary files instead of explicit paths.
-rwxr-xr-xfzfdic.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/fzfdic.sh b/fzfdic.sh
index 670e5f2..2481da5 100755
--- a/fzfdic.sh
+++ b/fzfdic.sh
@@ -2,7 +2,7 @@
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
+ fzf -x -i --prompt="EN>" < "$CONFIG_DIC_EN"
elif [ "$dict" = "ES" ]; then
- fzf -e -i --prompt="ES>" < /usr/share/dict/palabras.txt
+ fzf -x -i --prompt="ES>" < "$CONFIG_DIC_ES"
fi