From 01972e582d3e88b83ae819817c1ee378caf1cc87 Mon Sep 17 00:00:00 2001 From: Janne Koschinski Date: Thu, 12 Dec 2019 14:28:49 +0100 Subject: [PATCH] Improve performance of jobs segment --- segment-jobs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/segment-jobs.go b/segment-jobs.go index 2ddacdaa..3bcbd590 100644 --- a/segment-jobs.go +++ b/segment-jobs.go @@ -19,7 +19,7 @@ func segmentJobs(p *powerline) { ppid = int(pppid) } - out, _ := exec.Command("ps", "-a", "-oppid=").Output() + out, _ := exec.Command("ps", "-oppid=").Output() processes := strings.Split(string(out), "\n") for _, processPpidStr := range processes { processPpid, _ := strconv.ParseInt(strings.TrimSpace(processPpidStr), 10, 64)