From 5af75f56b17bcc7e8dd44d7a116177321d58515e Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Thu, 21 Jun 2012 01:30:37 +1200 Subject: More portable wc -l with sed --- bash/bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bash/bashrc') diff --git a/bash/bashrc b/bash/bashrc index 98b7a017..130a030e 100644 --- a/bash/bashrc +++ b/bash/bashrc @@ -223,7 +223,7 @@ function prompt { # Job count prompt function. jobs) - [[ -n "$(jobs)" ]] && printf '{%d}' $(jobs | wc -l | sed 's/ //g') + [[ -n "$(jobs)" ]] && printf '{%d}' $(jobs | sed -n '$=') ;; esac } -- cgit v1.2.3