mirror of
https://git.disroot.org/FollieHiyuki/dotfiles.git
synced 2024-12-03 20:58:33 -05:00
setup: add words.txt
This commit is contained in:
parent
4969600f3e
commit
0eb8e0e739
@ -4,7 +4,7 @@
|
|||||||
<!-- Default font (no fc-match pattern) -->
|
<!-- Default font (no fc-match pattern) -->
|
||||||
<match>
|
<match>
|
||||||
<edit mode="prepend" name="family">
|
<edit mode="prepend" name="family">
|
||||||
<string>Iosevka Etoile</string>
|
<string>Iosevka Aile</string>
|
||||||
</edit>
|
</edit>
|
||||||
</match>
|
</match>
|
||||||
|
|
||||||
@ -14,7 +14,7 @@
|
|||||||
<string>ja</string>
|
<string>ja</string>
|
||||||
</test>
|
</test>
|
||||||
<edit mode="prepend" name="family">
|
<edit mode="prepend" name="family">
|
||||||
<string>Sarasa Fixed Slab J</string>
|
<string>Sarasa Fixed J</string>
|
||||||
</edit>
|
</edit>
|
||||||
</match>
|
</match>
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ underline=$(tput smul)
|
|||||||
esc=$(tput sgr0)
|
esc=$(tput sgr0)
|
||||||
|
|
||||||
if [ -z "$1" ]; then
|
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
|
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
|
||||||
|
@ -28,3 +28,6 @@ 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.txt $HOME/.local/share/words.txt
|
||||||
|
Loading…
Reference in New Issue
Block a user