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

better iTerm version filter

This commit is contained in:
romkatv 2019-09-04 08:16:02 +02:00
parent 298fa2f325
commit 200b02b242

View file

@ -245,7 +245,7 @@ function can_install_font() {
return
fi
if [[ "$(uname)" == Darwin && $TERM_PROGRAM == iTerm.app ]]; then
[[ $TERM_PROGRAM_VERSION == (2|3)* ]] || return
[[ $TERM_PROGRAM_VERSION == [2-9]* ]] || return
if [[ -f ~/Library/Fonts ]]; then
[[ -d ~/Library/Fonts && -w ~/Library/Fonts ]] || return
else