From 2fffa125bc152ffc1f119afc592a7f5e9042386e Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Wed, 27 Nov 2013 01:41:03 +0900 Subject: [PATCH] shrc: fix showing jobs in PS1 --- shrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shrc b/shrc index a548f33..e167e5a 100755 --- a/shrc +++ b/shrc @@ -1065,9 +1065,9 @@ __my_ps1_jobs(){ else jobs="`jobs | wc -l`" fi - if test "$1" -ne 0 + if test "$jobs" -gt 0 then - echo "[JOBS:$1] " + echo "[JOBS:$jobs] " fi }