mirror of
https://github.com/powerline/powerline.git
synced 2025-07-31 01:35:40 +02:00
Merge 32a08d9433d0d683b6aa49b90d486b422bc85176 into 574bb1887b9f27b3c046c6b74a1f3ed75b115a75
This commit is contained in:
commit
4559786540
@ -27,7 +27,7 @@ def hostname(pl, segment_info, only_if_ssh=False, exclude_domain=False):
|
||||
== 'ee5bcdc6-b749-11e7-9456-50465d597777'
|
||||
):
|
||||
return 'hostname'
|
||||
if only_if_ssh and not segment_info['environ'].get('SSH_CLIENT'):
|
||||
if only_if_ssh and not segment_info['environ'].get('SSH_CONNECTION'):
|
||||
return None
|
||||
if exclude_domain:
|
||||
return socket.gethostname().split('.')[0]
|
||||
|
Loading…
x
Reference in New Issue
Block a user