mirror of
https://github.com/b-ryan/powerline-shell.git
synced 2026-09-10 07:26:28 -04:00
parent
5763a35cc0
commit
0055f7c2b7
|
|
@ -9,7 +9,8 @@ class Segment(ThreadedSegment):
|
|||
|
||||
def run(self):
|
||||
self.num_jobs = 0
|
||||
if platform.system().startswith("CYGWIN"):
|
||||
system = platform.system()
|
||||
if system.startswith("CYGWIN") or system.startswith("MINGW"):
|
||||
# cygwin ps is a special snowflake...
|
||||
output_proc = subprocess.Popen(["ps", "-af"], stdout=subprocess.PIPE)
|
||||
output = map(lambda l: int(l.split()[2].strip()),
|
||||
|
|
|
|||
Loading…
Reference in a new issue