增加termux自动设置字体
This commit is contained in:
parent
5d61595307
commit
746fa09873
BIN
fonts/DejaVu.ttf
Normal file
BIN
fonts/DejaVu.ttf
Normal file
Binary file not shown.
13
install.sh
13
install.sh
@ -355,6 +355,18 @@ function install_fonts_on_mac()
|
||||
cp ./fonts/Droid\ Sans\ Mono\ Nerd\ Font\ Complete.otf ~/Library/Fonts
|
||||
}
|
||||
|
||||
# 安装android平台字体
|
||||
function install_fonts_on_android()
|
||||
{
|
||||
rm -rf ~/.termux/font.ttf
|
||||
mkdir ~/.termux
|
||||
cp ./fonts/DejaVu.ttf ~/.termux/font.ttf
|
||||
|
||||
# 刷新style
|
||||
REL="am broadcast --user 0 -a com.termux.app.reload_style com.termux"
|
||||
$REL > /dev/null
|
||||
}
|
||||
|
||||
# 安装linux平台字体
|
||||
function install_fonts_on_linux()
|
||||
{
|
||||
@ -443,6 +455,7 @@ function install_vimplus_on_android()
|
||||
backup_vimrc_and_vim
|
||||
install_prepare_software_on_android
|
||||
copy_files
|
||||
install_fonts_on_android
|
||||
install_ycm_on_android
|
||||
install_vim_plugin
|
||||
print_logo
|
||||
|
||||
13
update.sh
13
update.sh
@ -18,6 +18,18 @@ function update_fonts_on_mac()
|
||||
cp ./fonts/Droid\ Sans\ Mono\ Nerd\ Font\ Complete.otf ~/Library/Fonts
|
||||
}
|
||||
|
||||
# 更新android平台字体
|
||||
function update_fonts_on_android()
|
||||
{
|
||||
rm -rf ~/.termux/font.ttf
|
||||
mkdir ~/.termux
|
||||
cp ./fonts/DejaVu.ttf ~/.termux/font.ttf
|
||||
|
||||
# 刷新style
|
||||
REL="am broadcast --user 0 -a com.termux.app.reload_style com.termux"
|
||||
$REL > /dev/null
|
||||
}
|
||||
|
||||
# 更新linux平台字体
|
||||
function update_fonts_on_linux()
|
||||
{
|
||||
@ -110,6 +122,7 @@ function update_vimplus_on_android()
|
||||
{
|
||||
git pull origin master
|
||||
copy_files
|
||||
update_fonts_on_android
|
||||
update_vim_plugin
|
||||
print_logo
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user