Skip to content

Commit 0055f7c

Browse files
committed
MINGW condition in job count
Closes #330
1 parent 5763a35 commit 0055f7c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

powerline_shell/segments/jobs.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ class Segment(ThreadedSegment):
99

1010
def run(self):
1111
self.num_jobs = 0
12-
if platform.system().startswith("CYGWIN"):
12+
system = platform.system()
13+
if system.startswith("CYGWIN") or system.startswith("MINGW"):
1314
# cygwin ps is a special snowflake...
1415
output_proc = subprocess.Popen(["ps", "-af"], stdout=subprocess.PIPE)
1516
output = map(lambda l: int(l.split()[2].strip()),

0 commit comments

Comments
 (0)