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:
parent
ebcb8cd307
commit
7f90c103d1
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue