From 730697893e4b9c06da74f5025fe9318f70a13fdc Mon Sep 17 00:00:00 2001 From: Dominik Ritter Date: Wed, 26 Aug 2015 18:26:53 +0200 Subject: Grep statement simplified. --- powerlevel9k.zsh-theme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 )) -- cgit v1.2.3