From 0eb8e0e7393e8c45d288dadf6bd7d6bcdcc67be0 Mon Sep 17 00:00:00 2001 From: FollieHiyuki Date: Sun, 16 May 2021 15:12:56 +0300 Subject: [PATCH] setup: add words.txt --- home/.config/fontconfig/fonts.conf | 4 ++-- home/.local/bin/dict | 2 +- setup/scripts.sh | 3 +++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/home/.config/fontconfig/fonts.conf b/home/.config/fontconfig/fonts.conf index 7693c60..2a72ad3 100644 --- a/home/.config/fontconfig/fonts.conf +++ b/home/.config/fontconfig/fonts.conf @@ -4,7 +4,7 @@ - Iosevka Etoile + Iosevka Aile @@ -14,7 +14,7 @@ ja - Sarasa Fixed Slab J + Sarasa Fixed J diff --git a/home/.local/bin/dict b/home/.local/bin/dict index c1dba1b..d193c83 100755 --- a/home/.local/bin/dict +++ b/home/.local/bin/dict @@ -7,7 +7,7 @@ underline=$(tput smul) esc=$(tput sgr0) if [ -z "$1" ]; then - aspell dump master | sort | fzf --no-multi | xargs -r dict + sort ~/.local/share/words.txt | fzf --no-multi | xargs -r dict else curl -s "dict://dict.org/d:$1" | sed -n -e '/^151.*/,/^\./p' | sed -e 's/^151.*//g' -e '/^\./D' -e '/^\s*1\./i\\' -e "s/{\([^{]*\)}/${esc}${bold}${underline}\1${esc}/g" -e "s/^\($1\)\(\W\)/${esc}${bold}${red}\1${esc}\2/gI" -e "s/^\(\s*\)\([0-9]\.\)/\1${esc}${bold}${cyan}\2${esc}/g" -e 's/--/—/g' -e 's/—\(\w\)/— \1/g' fi diff --git a/setup/scripts.sh b/setup/scripts.sh index b93b799..8af414a 100755 --- a/setup/scripts.sh +++ b/setup/scripts.sh @@ -28,3 +28,6 @@ read -r answer if [ "${answer}" = "y" ]; then $HOME/.local/bin/cht.sh --standalone-install $HOME/.local/share/cheat.sh fi + +# Not a script but whatever +curl -fL https://github.com/dwyl/english-words/raw/master/words.txt $HOME/.local/share/words.txt