aboutsummaryrefslogtreecommitdiff
path: root/powerlevel9k.zsh-theme
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2019-06-01 17:52:13 +0300
committerromkatv <roman.perepelitsa@gmail.com>2019-06-01 17:52:13 +0300
commit7f3924adf9b78720e836aa3acfb05147ed9c00ab (patch)
tree4fead8b295b9d1d926a46d552c62f25d33238035 /powerlevel9k.zsh-theme
parent82bec3a25bf53af7097ff5252b038b5c50955641 (diff)
quote to avoid clashes with global aliases
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-xpowerlevel9k.zsh-theme8
1 files changed, 4 insertions, 4 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index 3b3e19a3..af70f275 100755
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -1513,10 +1513,10 @@ prompt_swap() {
[[ "$(command sysctl vm.swapusage 2>/dev/null)" =~ "used = ([0-9,.]+)([A-Z]+)" ]] || return
used_bytes=${match[1]//,/.}
case ${match[2]} in
- K) (( used_bytes *= 1024 ));;
- M) (( used_bytes *= 1048576 ));;
- G) (( used_bytes *= 1073741824 ));;
- T) (( used_bytes *= 1099511627776 ));;
+ 'K') (( used_bytes *= 1024 ));;
+ 'M') (( used_bytes *= 1048576 ));;
+ 'G') (( used_bytes *= 1073741824 ));;
+ 'T') (( used_bytes *= 1099511627776 ));;
*) return;;
esac
else