25 lines
573 B
Bash
Executable File
25 lines
573 B
Bash
Executable File
#!/usr/bin/zsh
|
|
|
|
# get all the fonts
|
|
sudo apt install -y \
|
|
'fonts-noto-*'
|
|
|
|
# uninstall outdated noto-emoji
|
|
sudo apt remove -y \
|
|
fonts-noto-color-emoji
|
|
|
|
# get latest noto-emoji
|
|
mkdir -p ~/.fonts/NotoEmoji/
|
|
|
|
curl -L 'https://raw.githubusercontent.com/googlefonts/noto-emoji/main/fonts/NotoColorEmoji.ttf' \
|
|
-o ~/.fonts/NotoEmoji/NotoColorEmoji.ttf
|
|
|
|
# link font-priority config
|
|
cd /Cfg/emoji/
|
|
ln -s `pwd`/.fonts.conf ~/ --force
|
|
mkdir -p ~/.config/fontconfig/
|
|
ln -s `pwd`/.fonts.conf ~/.config/fontconfig/fonts.conf --force
|
|
|
|
# rebuild fonts-cache
|
|
fc-cache -fv
|