mirror of
https://github.com/b-ryan/powerline-shell.git
synced 2026-09-10 07:26:28 -04:00
prepare 0.4.8
This commit is contained in:
parent
3c3062e3ce
commit
e7964d1682
|
|
@ -1,5 +1,12 @@
|
|||
# Changes
|
||||
|
||||
2018-01-29 (version 0.4.8)
|
||||
|
||||
* Bring back the ability to create custom themes
|
||||
([@b-ryan](https://github.com/b-ryan/powerline-shell/pull/352))
|
||||
* Add the ability to customize the `time` segment in themes
|
||||
([@gaurav-nelson](https://github.com/b-ryan/powerline-shell/pull/338))
|
||||
|
||||
2018-01-15 (version 0.4.7)
|
||||
|
||||
* VCS segments (git, hg, etc.) can now show a symbol identifying what VPS the
|
||||
|
|
|
|||
19
README.md
19
README.md
|
|
@ -218,14 +218,25 @@ file. The available modes are:
|
|||
The `powerline_shell/themes` directory stores themes for your prompt, which are
|
||||
basically color values used by segments. The `default.py` defines a default
|
||||
theme which can be used standalone, and every other theme falls back to it if
|
||||
they miss colors for any segments. Create new themes by copying any other
|
||||
existing theme and changing the values. To use a theme, set the `theme`
|
||||
variable in `~/.powerline-shell.json` to the name of your theme.
|
||||
they miss colors for any segments.
|
||||
|
||||
If you want to create a custom theme, start by copying one of the existing
|
||||
themes, like the
|
||||
[basic](https://github.com/b-ryan/powerline-shell/blob/master/powerline_shell/themes/basic.py).
|
||||
and update your `~/.powerline-shell.json`, setting the `"theme"` to the path of
|
||||
the file. For example your configuration might have:
|
||||
|
||||
```
|
||||
"theme": "~/mythemes/my-great-theme.py"
|
||||
```
|
||||
|
||||
You can then modify the color codes to your liking. Theme colors are specified
|
||||
using [Xterm-256 color codes](https://jonasjacek.github.io/colors/).
|
||||
|
||||
A script for testing color combinations is provided at `colortest.py`. Note
|
||||
that the colors you see may vary depending on your terminal. When designing a
|
||||
theme, please test your theme on multiple terminals, especially with default
|
||||
settings. Theme colors are specified using [Xterm-256 color codes](https://jonasjacek.github.io/colors/).
|
||||
settings.
|
||||
|
||||
### Segment Configuration
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
from .default import DefaultColor
|
||||
from powerline_shell.themes.default import DefaultColor
|
||||
|
||||
|
||||
class Color(DefaultColor):
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
from .default import DefaultColor
|
||||
from powerline_shell.themes.default import DefaultColor
|
||||
|
||||
|
||||
class Color(DefaultColor):
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
from .default import DefaultColor
|
||||
from powerline_shell.themes.default import DefaultColor
|
||||
|
||||
|
||||
class Color(DefaultColor):
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
from .default import DefaultColor
|
||||
from powerline_shell.themes.default import DefaultColor
|
||||
|
||||
|
||||
class Color(DefaultColor):
|
||||
|
|
|
|||
Loading…
Reference in a new issue