update install.sh
This commit is contained in:
parent
0cbab3fa40
commit
ac6144e73d
@ -327,11 +327,11 @@ function install_fonts_on_mac()
|
||||
# 安装linux平台字体
|
||||
function install_fonts_on_linux()
|
||||
{
|
||||
mkdir ~/.fonts
|
||||
rm -rf ~/.fonts/Droid\ Sans\ Mono\ Nerd\ Font\ Complete.otf
|
||||
cp ./fonts/Droid\ Sans\ Mono\ Nerd\ Font\ Complete.otf ~/.fonts
|
||||
mkdir -p ~/.local/share/fonts
|
||||
rm -rf ~/.local/share/fonts/Droid\ Sans\ Mono\ Nerd\ Font\ Complete.otf
|
||||
cp ./fonts/Droid\ Sans\ Mono\ Nerd\ Font\ Complete.otf ~/.local/share/fonts
|
||||
|
||||
fc-cache -vf ~/.fonts
|
||||
fc-cache -vf ~/.local/share/fonts
|
||||
}
|
||||
|
||||
# 下载插件管理软件vim-plug
|
||||
|
||||
@ -212,11 +212,11 @@ function install_to_user_on_linux()
|
||||
chown -R $desc_username":"$desc_username $desc_vim_path"ftplugin"
|
||||
|
||||
# 安装字体
|
||||
mkdir $desc_home_path".fonts/"
|
||||
rm -rf $desc_home_path".fonts/Droid Sans Mono Nerd Font Complete.otf"
|
||||
cp $desc_vimplus_path"fonts/Droid Sans Mono Nerd Font Complete.otf" $desc_home_path".fonts/"
|
||||
chown -R $desc_username":"$desc_username $desc_home_path".fonts/"
|
||||
fc-cache -vf $desc_home_path".fonts/"
|
||||
mkdir -p $desc_home_path".local/share/fonts/"
|
||||
rm -rf $desc_home_path".local/share/fonts/Droid Sans Mono Nerd Font Complete.otf"
|
||||
cp $desc_vimplus_path"fonts/Droid Sans Mono Nerd Font Complete.otf" $desc_home_path".local/share/fonts/"
|
||||
chown -R $desc_username":"$desc_username $desc_home_path".local/share/fonts/"
|
||||
fc-cache -vf $desc_home_path".local/share/fonts/"
|
||||
}
|
||||
|
||||
# 脚本启动点
|
||||
|
||||
Loading…
Reference in New Issue
Block a user