From 6d3425b394509ceeed9678c6980011c69e0cf791 Mon Sep 17 00:00:00 2001 From: Caleb Bassi Date: Fri, 25 Jan 2019 15:35:02 -0800 Subject: [PATCH] Add -c flag to ps on OSX and FreeBSD --- src/widgets/proc_other.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/proc_other.go b/src/widgets/proc_other.go index 7bb834b..449e952 100644 --- a/src/widgets/proc_other.go +++ b/src/widgets/proc_other.go @@ -29,7 +29,7 @@ func (self *Proc) update() { } func Processes() ([]Process, error) { - output, err := exec.Command("ps", "-axo", "pid,comm,pcpu,pmem,args").Output() + output, err := exec.Command("ps", "-caxo", "pid,comm,pcpu,pmem,args").Output() if err != nil { return nil, fmt.Errorf("failed to execute 'ps' command: %v", err) }