mirror of
https://github.com/powerline/powerline.git
synced 2025-07-23 22:05:43 +02:00
parent
577a1c0c79
commit
ea1e45def4
@ -616,7 +616,7 @@ def user(pl, segment_info=None):
|
||||
'contents': username,
|
||||
'highlight_group': 'user' if euid != 0 else ['superuser', 'user'],
|
||||
}]
|
||||
if 'psutil' in globals():
|
||||
if 'psutil' not in globals():
|
||||
user = requires_segment_info(user)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user