This commit is contained in:
fengbh 2025-04-19 16:44:13 +08:00
parent 92e51f2cef
commit ebbb000589

View File

@ -3,11 +3,28 @@
# License : MIT # License : MIT
# Author : Feng Bohan <1953356163@qq.com> # Author : Feng Bohan <1953356163@qq.com>
# Date : 2025-04-18 09:02:16 # Date : 2025-04-18 09:02:16
# Last Modified Date: 2025-04-19 16:00:47 # Last Modified Date: 2025-04-19 16:42:58
# Last Modified By : Feng Bohan <1953356163@qq.com> # Last Modified By : Feng Bohan <1953356163@qq.com>
# ----- # -----
# Copyright © 2025 Feng Bohan. All Rights Reserved. # Copyright © 2025 Feng Bohan. All Rights Reserved.
echo "开始配置字体"
wget https://github.com/ryanoasis/nerd-fonts/releases/download/v3.3.0/JetBrainsMono.zip
wget https://github.com/ryanoasis/nerd-fonts/releases/download/v3.3.0/FiraCode.zip
wget https://github.com/ryanoasis/nerd-fonts/releases/download/v3.3.0/Hack.zip
fonts_path="~/.local/share/fonts"
if [ ! -d $fonts_path ]; then
mkdir -p ~/.local/share/fonts
fi
echo "开始解压字体"
unzip FiraCode.zip -d ~/.local/share/fonts/FiraCodeNerdFont
unzip JetBrainsMono.zip -d ~/.local/share/fonts/JetBrainsMonoNerdFont
unzip Hack.zip -d ~/.local/share/fonts/HackNerdFont
echo "刷新字体缓存"
fc-cache -fv
echo "开始配置VIM" echo "开始配置VIM"
# 链接配置文件 # 链接配置文件
ln -sf ~/dotfiles/vim/.vimrc ~/.vimrc ln -sf ~/dotfiles/vim/.vimrc ~/.vimrc