diff options
author | Ben Hilburn <bhilburn@gmail.com> | 2018-03-07 04:56:11 +0300 |
---|---|---|
committer | Ben Hilburn <bhilburn@gmail.com> | 2018-03-07 04:56:11 +0300 |
commit | b8a68dd4a88cc0454ed1e385765d368e7fb50429 (patch) | |
tree | ab77ab740347ede4780dfb8d12e500292d41a486 | |
parent | 33e301078458901f09cadf23c48ed7b3db5311ff (diff) | |
parent | afb7387abec505fb6565d31481c5f5ed724c2f08 (diff) |
Merge branch 'master' into next
-rw-r--r-- | README.md | 1 | ||||
-rwxr-xr-x | powerlevel9k.zsh-theme | 4 |
2 files changed, 3 insertions, 2 deletions
@@ -603,6 +603,7 @@ customization is provided via: |`POWERLEVEL9K_VCS_GIT_HOOKS`|`(vcs-detect-changes git-untracked git-aheadbehind git-stash git-remotebranch git-tagname)`|Layout of the segment for git repositories.| |`POWERLEVEL9K_VCS_HG_HOOKS`|`(vcs-detect-changes)`|Layout of the segment for Mercurial repositories.| |`POWERLEVEL9K_VCS_SVN_HOOKS`|`(vcs-detect-changes svn-detect-changes)`|Layout of the segment for SVN repositories.| +|`POWERLEVEL9K_VCS_ACTIONFORMAT_FOREGROUND`|`red`|The color of the foreground font during actions (e.g., `REBASE`).| ##### vcs symbols diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index c32ccd48..8dee7f27 100755 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -1023,9 +1023,9 @@ prompt_load() { # Replace comma load_avg=${load_avg//,/.} - if [[ "$load_avg" -gt $(bc -l <<< "${cores} * 0.7") ]]; then + if [[ "$load_avg" -gt $((${cores} * 0.7)) ]]; then current_state="critical" - elif [[ "$load_avg" -gt $(bc -l <<< "${cores} * 0.5") ]]; then + elif [[ "$load_avg" -gt $((${cores} * 0.5)) ]]; then current_state="warning" else current_state="normal" |