Skip to content

Commit

Permalink
improve generic_shell
Browse files Browse the repository at this point in the history
  • Loading branch information
PH111P committed Apr 12, 2018
1 parent 81d50e7 commit a2d8796
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions powerline/segments/common/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
import subprocess
from powerline.theme import requires_segment_info

def generic_shell(pl, command):
def generic_shell(pl, command, highlight_groups=["generic_shell"]):
'''Execute the given command in a shell and return its result
:param str command:
:param string command:
The command to execute.
Highlight groups used: ``generic_shell``.
:param string_list highlight_groups:
The highlight groups to use.
Click values supplied: ``contents`` (string)
'''
Expand All @@ -24,8 +24,8 @@ def generic_shell(pl, command):

return [{
'contents': contents,
'highlight_groups': ['generic_shell'],
'click_values': {'contents': contents}
'click_values': {'contents': contents},
'highlight_groups': highlight_groups
}]


Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def compile_client():

setup(
name='powerline-status-i3',
version='1.7.10',
version='1.7.11',
description='The ultimate statusline/prompt utility. A fork containing more features for the i3 window manager.',
long_description=README,
classifiers=[
Expand Down

0 comments on commit a2d8796

Please sign in to comment.