mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2025-12-04 21:56:46 +01:00
Add documentation for printSizeHumanReadable
This commit is contained in:
parent
ca6cbaa0b6
commit
d7a0f49391
1 changed files with 3 additions and 0 deletions
|
|
@ -27,6 +27,9 @@ function set_default() {
|
||||||
}
|
}
|
||||||
|
|
||||||
# Converts large memory values into a human-readable unit (e.g., bytes --> GB)
|
# Converts large memory values into a human-readable unit (e.g., bytes --> GB)
|
||||||
|
# Takes two arguments:
|
||||||
|
# * $size - The number which should be prettified
|
||||||
|
# * $base - The base of the number (default Bytes)
|
||||||
printSizeHumanReadable() {
|
printSizeHumanReadable() {
|
||||||
typeset -F 2 size
|
typeset -F 2 size
|
||||||
size="$1"+0.00001
|
size="$1"+0.00001
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue