Remove words.txt

Use words-en (aspell) package instead
This commit is contained in:
FollieHiyuki 2021-05-17 22:26:39 +03:00
parent 2ca7ebcb11
commit e971b784d1
No known key found for this signature in database
GPG Key ID: 813CF484F4993419
2 changed files with 1 additions and 4 deletions

View File

@ -7,7 +7,7 @@ underline=$(tput smul)
esc=$(tput sgr0) esc=$(tput sgr0)
if [ -z "$1" ]; then if [ -z "$1" ]; then
fzf --no-multi < ~/.local/share/words.txt | tr -d '\r' | xargs -r dict fzf --no-multi < /usr/share/dict/words | xargs -t -r dict
else 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' 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 fi

View File

@ -28,6 +28,3 @@ read -r answer
if [ "${answer}" = "y" ]; then if [ "${answer}" = "y" ]; then
$HOME/.local/bin/cht.sh --standalone-install $HOME/.local/share/cheat.sh $HOME/.local/bin/cht.sh --standalone-install $HOME/.local/share/cheat.sh
fi fi
# Not a script but whatever
curl -fL https://github.com/dwyl/english-words/raw/master/words_alpha.txt $HOME/.local/share/words.txt