mirror of
https://git.disroot.org/FollieHiyuki/dotfiles.git
synced 2024-11-24 16:28:22 -05:00
setup: add words.txt
This commit is contained in:
parent
045fa07a15
commit
09ec1653bd
@ -4,7 +4,7 @@
|
||||
<!-- Default font (no fc-match pattern) -->
|
||||
<match>
|
||||
<edit mode="prepend" name="family">
|
||||
<string>Iosevka Etoile</string>
|
||||
<string>Iosevka Aile</string>
|
||||
</edit>
|
||||
</match>
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
<string>ja</string>
|
||||
</test>
|
||||
<edit mode="prepend" name="family">
|
||||
<string>Sarasa Fixed Slab J</string>
|
||||
<string>Sarasa Fixed J</string>
|
||||
</edit>
|
||||
</match>
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user