1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-11 00:00:06 +00:00

wizard: offer to override font on Termux if it is not MesloLGS NF

This commit is contained in:
romkatv 2019-09-03 20:07:55 +02:00
parent ebcb8cd307
commit 7f90c103d1

View file

@ -231,7 +231,11 @@ function can_install_font() {
if [[ "$(uname)" == Linux && "$(uname -o)" == Android ]]; then
(( $+commands[termux-reload-settings] )) || return
(( $+commands[curl] )) || return
[[ ! -f ~/.termux/font.ttf ]] || return
if [[ -f ~/.termux/font.ttf ]]; then
[[ -r ~/.termux/font.ttf ]] || return
[[ -w ~/.termux/font.ttf ]] || return
! grep -q 'MesloLGS NF' ~/.termux/font.ttf 2>/dev/null || return
fi
if [[ -f ~/.termux ]]; then
[[ -d ~/.termux && -w ~/.termux ]] || return
else