File tree 8 files changed +24
-101
lines changed
8 files changed +24
-101
lines changed Original file line number Diff line number Diff line change 8
8
config.json
9
9
powerline-shell.json
10
10
.DS_Store
11
+
12
+ # editors
11
13
* sublime *
14
+ .vscode /
15
+ .idea /
12
16
13
17
# Byte-compiled / optimized / DLL files
14
18
__pycache__ /
@@ -38,16 +42,6 @@ share/python-wheels/
38
42
* .egg
39
43
MANIFEST
40
44
41
- # PyInstaller
42
- # Usually these files are written by a python script from a template
43
- # before PyInstaller builds the exe, so as to inject date/other infos into it.
44
- * .manifest
45
- * .spec
46
-
47
- # Installer logs
48
- pip-log.txt
49
- pip-delete-this-directory.txt
50
-
51
45
# Unit test / coverage reports
52
46
htmlcov /
53
47
.tox /
@@ -63,59 +57,6 @@ coverage.xml
63
57
.pytest_cache /
64
58
cover /
65
59
66
- # Translations
67
- * .mo
68
- * .pot
69
-
70
- # Django stuff:
71
- * .log
72
- local_settings.py
73
- db.sqlite3
74
- db.sqlite3-journal
75
-
76
- # Flask stuff:
77
- instance /
78
- .webassets-cache
79
-
80
- # Scrapy stuff:
81
- .scrapy
82
-
83
- # Sphinx documentation
84
- docs /_build /
85
-
86
- # PyBuilder
87
- .pybuilder /
88
- target /
89
-
90
- # Jupyter Notebook
91
- .ipynb_checkpoints
92
-
93
- # IPython
94
- profile_default /
95
- ipython_config.py
96
-
97
- # pyenv
98
- # For a library or package, you might want to ignore these files since the code is
99
- # intended to run in multiple environments; otherwise, check them in:
100
- # .python-version
101
-
102
- # pipenv
103
- # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
104
- # However, in case of collaboration, if having platform-specific dependencies or dependencies
105
- # having no cross-platform support, pipenv may install dependencies that don't work, or not
106
- # install all needed dependencies.
107
- # Pipfile.lock
108
-
109
- # PEP 582; used by e.g. github.com/David-OConnor/pyflow
110
- __pypackages__ /
111
-
112
- # Celery stuff
113
- celerybeat-schedule
114
- celerybeat.pid
115
-
116
- # SageMath parsed files
117
- * .sage.py
118
-
119
60
# Environments
120
61
.env
121
62
.venv
125
66
env.bak /
126
67
venv.bak /
127
68
128
- # Spyder project settings
129
- .spyderproject
130
- .spyproject
131
-
132
- # Rope project settings
133
- .ropeproject
134
-
135
- # mkdocs documentation
136
- /site
137
-
138
- # mypy
139
- .mypy_cache /
140
- .dmypy.json
141
- dmypy.json
142
-
143
- # Pyre type checker
144
- .pyre /
145
-
146
- # pytype static type analyzer
147
- .pytype /
148
-
149
- # Cython debug symbols
150
- cython_debug /
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ def rgbstring2tuple(s):
100
100
(95 , 135 , 215 ): 68 ,
101
101
(95 , 135 , 255 ): 69 ,
102
102
(95 , 175 , 0 ): 70 ,
103
- (95 , 175 , 95 ) : 71 ,
103
+ (95 , 175 , 95 ): 71 ,
104
104
(95 , 175 , 135 ): 72 ,
105
105
(95 , 175 , 175 ): 73 ,
106
106
(95 , 175 , 215 ): 74 ,
Original file line number Diff line number Diff line change 8
8
9
9
class Segment (BasicSegment ):
10
10
def add_to_powerline (self ):
11
- kubecontext = os .environ .get ("KUBECONFIG" )
11
+ kube_context = os .environ .get ("KUBECONFIG" )
12
12
if kubecontext :
13
- self .powerline .append (" kctx:%s " % os .path .basename (kubecontext ),
14
- self .powerline .theme .KUBECONFIG_FG ,
15
- self .powerline .theme .KUBECONFIG_BG )
13
+ self .powerline .append (" kctx:%s " % os .path .basename (kube_context ),
14
+ self .powerline .theme .KUBE_CONTEXT_FG ,
15
+ self .powerline .theme .KUBE_CONTEXT_BG )
16
+
Original file line number Diff line number Diff line change @@ -44,5 +44,6 @@ class Color(DefaultColor):
44
44
TIME_FG = 8
45
45
TIME_BG = 7
46
46
47
- KUBECONFIG_FG = 14
48
- KUBECONFIG_BG = 8
47
+ KUBE_CONTEXT_FG = 14
48
+ KUBE_CONTEXT_BG = 8
49
+
Original file line number Diff line number Diff line change @@ -75,8 +75,9 @@ class DefaultColor(object):
75
75
TIME_FG = 250
76
76
TIME_BG = 238
77
77
78
- KUBECONFIG_FG = 38
79
- KUBECONFIG_BG = 239
78
+ KUBE_CONTEXT_FG = 38
79
+ KUBE_CONTEXT_BG = 239
80
+
80
81
81
82
class Color (DefaultColor ):
82
83
"""
Original file line number Diff line number Diff line change @@ -110,5 +110,6 @@ class Color(DefaultColor):
110
110
TIME_FG = light2
111
111
TIME_BG = dark4
112
112
113
- KUBECONFIG_BG = neutral_blue
114
- KUBECONFIG_FG = dark2
113
+ KUBE_CONTEXT_FG = neutral_blue
114
+ KUBE_CONTEXT_BG = dark2
115
+
Original file line number Diff line number Diff line change @@ -43,5 +43,6 @@ class Color(DefaultColor):
43
43
TIME_FG = 15
44
44
TIME_BG = 10
45
45
46
- KUBECONFIG_FG = 7
47
- KUBECONFIG_BG = 2
46
+ KUBE_CONTEXT_FG = 7
47
+ KUBE_CONTEXT_BG = 2
48
+
Original file line number Diff line number Diff line change @@ -43,5 +43,5 @@ class Color(DefaultColor):
43
43
TIME_FG = 8
44
44
TIME_BG = 7
45
45
46
- KUBECONFIG_FG = 0
47
- KUBECONFIG_BG = 7
46
+ KUBE_CONTEXT_FG = 0
47
+ KUBE_CONTEXT_BG = 7
You can’t perform that action at this time.
0 commit comments