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

make __p9k_byte_suffix readonly

This commit is contained in:
romkatv 2020-01-28 07:41:42 +01:00
parent 286ba2a84b
commit 3c64f43f2d

View file

@ -329,7 +329,7 @@ function _p9k_prompt_length() {
_p9k_ret=$x
}
typeset -g __p9k_byte_suffix=('B' 'K' 'M' 'G' 'T' 'P' 'E' 'Z' 'Y')
typeset -gr __p9k_byte_suffix=('B' 'K' 'M' 'G' 'T' 'P' 'E' 'Z' 'Y')
# 42 => 42B
# 1536 => 1.5K