diff options
author | Dominik Ritter <dritter03@googlemail.com> | 2015-08-26 19:26:53 +0300 |
---|---|---|
committer | Dominik Ritter <dritter03@googlemail.com> | 2015-08-26 19:26:53 +0300 |
commit | 730697893e4b9c06da74f5025fe9318f70a13fdc (patch) | |
tree | 180b8d52ad8388f3f39099614cbd4c20b1140e2c /powerlevel9k.zsh-theme | |
parent | fccc3d5e64869871744baa5d40b397826b9f3cb2 (diff) |
Grep statement simplified.
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rw-r--r-- | powerlevel9k.zsh-theme | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index 8c76ff85..f9b14c64 100644 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -571,7 +571,7 @@ prompt_ip() { prompt_load() { if [[ "$OS" == "OSX" ]]; then - load_avg_5min=$(sysctl vm.loadavg | grep -o -E -e '[0-9]+\.[0-9]+' | head -n 1) + load_avg_5min=$(sysctl vm.loadavg | grep -o -E '[0-9]+\.[0-9]+' | head -n 1) ramfree=$(vm_stat | grep "Pages free" | grep -o -E '[0-9]+') # Convert pages into Bytes ramfree=$(( $ramfree * 4096 )) |