summaryrefslogtreecommitdiff
path: root/config/p10k-lean.zsh
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2020-02-24 14:15:58 +0300
committerromkatv <roman.perepelitsa@gmail.com>2020-02-24 14:15:58 +0300
commit1885d15da284f43e3efe0525ef5c83cc84449460 (patch)
tree6a716a21068677e0020cc352c2e9d02e5bea874f /config/p10k-lean.zsh
parentcfc76c8856733a7c289dfe3b4d3f234ab49d221c (diff)
set P9K_IP_TX_RATE and P9K_IP_RX_RATE to empty instead of 0 when unable to get the real values
Diffstat (limited to 'config/p10k-lean.zsh')
-rw-r--r--config/p10k-lean.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/p10k-lean.zsh b/config/p10k-lean.zsh
index 57965ba7..d6b755ec 100644
--- a/config/p10k-lean.zsh
+++ b/config/p10k-lean.zsh
@@ -1299,7 +1299,7 @@
# P9K_IP_TX_BYTES | total number of bytes sent
# P9K_IP_RX_RATE | receive rate (since last prompt)
# P9K_IP_TX_RATE | send rate (since last prompt)
- typeset -g POWERLEVEL9K_IP_CONTENT_EXPANSION='$P9K_IP_IP %70F⇣$P9K_IP_RX_RATE %215F⇡$P9K_IP_TX_RATE'
+ typeset -g POWERLEVEL9K_IP_CONTENT_EXPANSION='$P9K_IP_IP${P9K_IP_RX_RATE:+ %70F⇣$P9K_IP_RX_RATE}${P9K_IP_TX_RATE:+ %215F⇡$P9K_IP_TX_RATE}'
# Show information for the first network interface whose name matches this regular expression.
# Run `ifconfig` or `ip -4 a show` to see the names of all network interfaces.
typeset -g POWERLEVEL9K_IP_INTERFACE='e.*'