mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-18 05:40:07 +00:00
Merge branch 'master' into next
This commit is contained in:
commit
e8771a7039
1 changed files with 2 additions and 2 deletions
|
@ -236,7 +236,7 @@ printSizeHumanReadable() {
|
||||||
typeset -F 2 size
|
typeset -F 2 size
|
||||||
size="$1"+0.00001
|
size="$1"+0.00001
|
||||||
local extension
|
local extension
|
||||||
extension=(B K M G T P E Z Y)
|
extension=('B' 'K' 'M' 'G' 'T' 'P' 'E' 'Z' 'Y')
|
||||||
local index=1
|
local index=1
|
||||||
|
|
||||||
# if the base is not Bytes
|
# if the base is not Bytes
|
||||||
|
@ -1075,7 +1075,7 @@ powerlevel9k_init() {
|
||||||
term_colors=$(tput colors)
|
term_colors=$(tput colors)
|
||||||
if (( term_colors < 256 )); then
|
if (( term_colors < 256 )); then
|
||||||
print -P "%F{red}WARNING!%f Your terminal supports less than 256 colors!"
|
print -P "%F{red}WARNING!%f Your terminal supports less than 256 colors!"
|
||||||
print "You should set TERM=xterm-256colors in your ~/.zshrc"
|
print -P "You should put: %F{blue}export TERM=\"xterm-256color\"%f in your \~\/.zshrc"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
setopt prompt_subst
|
setopt prompt_subst
|
||||||
|
|
Loading…
Reference in a new issue