-
Notifications
You must be signed in to change notification settings - Fork 2
Refactor/more themes #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
nojhan
wants to merge
7
commits into
main
Choose a base branch
from
refactor/more-themes
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
e73dd67
feat: better powerline themes
nojhan 871c3d6
feat(plus): support features from LP 2.2
nojhan 5b08ed9
fix(doc): doc links, spelling, typo
nojhan c20045e
fix: default and update _lp_fill
nojhan af19636
review fixes
nojhan 6072df5
feat(preset): legacy.conf
nojhan d8944fc
feat(preset): contrast.conf
nojhan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
|
|
||
| POWERLINE_HOST_COLOR=(15 5) | ||
| POWERLINE_USER_COLOR=(15 5) | ||
| POWERLINE_PYTHON_ENV_COLOR=(0 3) | ||
| POWERLINE_PATH_COLOR=(15 4) | ||
| POWERLINE_PATH_SEPARATOR_COLOR=(0 4) | ||
| POWERLINE_PATH_LAST_COLOR=(15 4 1) | ||
| POWERLINE_PATH_VCS_COLOR=(15 4 1 1) | ||
| POWERLINE_PATH_SHORTENED_COLOR=(0 4) | ||
| POWERLINE_JOBS_COLOR=(15 4) | ||
| POWERLINE_VCS_CLEAN_COLOR=(7 0) | ||
| POWERLINE_VCS_DIRTY_COLOR=(3 0) | ||
| POWERLINE_VCS_STASH_COLOR=(3 0) | ||
| POWERLINE_ERROR_COLOR=(0 9) | ||
|
|
||
| POWERLINE_NEUTRAL_COLOR=(7 0) | ||
| POWERLINE_AWS_PROFILE_COLOR=(0 10) | ||
| POWERLINE_BATTERY_COLOR=(-1 3) | ||
| POWERLINE_LOAD_COLOR=(-1 11) | ||
| POWERLINE_RAM_COLOR=(-1 3) | ||
| POWERLINE_DISK_COLOR=(-1 3) | ||
| POWERLINE_TEMPERATURE_COLOR=(0 1) | ||
| POWERLINE_CHROOT_COLOR=(0 5) | ||
|
|
||
| POWERLINE_DIRSTACK_COLOR=(15 4) | ||
| POWERLINE_GAP_COLOR=(0 0) | ||
| POWERLINE_KUBECONTEXT_COLOR=(0 10) | ||
| POWERLINE_LINE_COLOR=(14 -1) | ||
| POWERLINE_NODE_ENV_COLOR=(0 10) | ||
| POWERLINE_PROXY_COLOR=(4 7) | ||
| POWERLINE_ENV_VARS_COLOR_SET=(0 5) | ||
| POWERLINE_ENV_VARS_COLOR_UNSET=(13 7) | ||
|
|
||
| # Pre-set for having access to the actual escaped string. | ||
| lp_terminal_format ${POWERLINE_ENV_VARS_COLOR_SET[@]} | ||
| POWERLINE_ENV_VARS_SET="$lp_terminal_format" | ||
| lp_terminal_format ${POWERLINE_ENV_VARS_COLOR_UNSET[@]} | ||
| POWERLINE_ENV_VARS_UNSET="$lp_terminal_format" | ||
|
|
||
| POWERLINE_RUBY_ENV_COLOR=(0 10) | ||
| POWERLINE_CMAKE_COLOR=(0 10) | ||
| POWERLINE_RUNTIME_COLOR=(15 4) | ||
| POWERLINE_SHLVL_COLOR=(15 5) | ||
| POWERLINE_SOFTWARE_COLLECTIONS_COLOR=(0 10) | ||
| POWERLINE_TAG_COLOR=(12 15) | ||
| POWERLINE_TERRAFORM_ENV_COLOR=(0 10) | ||
| POWERLINE_MODULES_COLOR=(0 10) | ||
| POWERLINE_OS_COLOR=(0 10) | ||
| POWERLINE_TIME_COLOR=(0 7) | ||
| POWERLINE_WIFI_STRENGTH_COLOR=(-1 3) | ||
| POWERLINE_DISPLAY_COLOR=(0 13) | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| POWERLINE_HOST_COLOR=(220 166 0 0 3 2) | ||
| POWERLINE_USER_COLOR=(231 31 1 0 7 6) | ||
| POWERLINE_PYTHON_ENV_COLOR=(231 74 0 0 7 4) | ||
| POWERLINE_PATH_COLOR=(250 240 0 0 7 0) | ||
| POWERLINE_PATH_SEPARATOR_COLOR=(245 240 0 0 7 0) | ||
| POWERLINE_PATH_LAST_COLOR=(252 240 1 0 7 0) | ||
| POWERLINE_PATH_VCS_COLOR=(147 240 1 0 4 0) | ||
| POWERLINE_PATH_SHORTENED_COLOR=(245 240 0 0 7 0) | ||
| POWERLINE_JOBS_COLOR=(220 166 0 0 3 2) | ||
| POWERLINE_VCS_CLEAN_COLOR=(250 236 0 0 7 0) | ||
| POWERLINE_VCS_DIRTY_COLOR=(220 236 0 0 3 0) | ||
| POWERLINE_VCS_STASH_COLOR=(220 236 0 0 3 0) | ||
| POWERLINE_ERROR_COLOR=(231 52 0 0 7 1) | ||
|
|
||
| POWERLINE_NEUTRAL_COLOR=(252 234 0 0 7 0) | ||
| POWERLINE_AWS_PROFILE_COLOR=(190 236 0 0 3 0) | ||
| POWERLINE_BATTERY_COLOR=(-1 238 0 0 -1 0) | ||
| POWERLINE_CHROOT_COLOR=(219 30 0 0 7 4) | ||
| POWERLINE_CONTAINER_COLOR=("${POWERLINE_NEUTRAL_COLOR[@]}") | ||
| POWERLINE_DIRSTACK_COLOR=("${POWERLINE_NEUTRAL_COLOR[@]}") | ||
| POWERLINE_KUBECONTEXT_COLOR=(231 74 0 0 7 4) | ||
| POWERLINE_LOAD_COLOR=(-1 148 0 0 -1 3) | ||
| POWERLINE_NODE_ENV_COLOR=("${POWERLINE_PYTHON_ENV_COLOR[@]}") | ||
| POWERLINE_PROXY_COLOR=(21 219 1 0 4 7) | ||
| POWERLINE_RUBY_ENV_COLOR=("${POWERLINE_PYTHON_ENV_COLOR[@]}") | ||
| POWERLINE_RUNTIME_COLOR=(226 17 0 0 3 4) | ||
| POWERLINE_SHLVL_COLOR=(231 58 0 0 7 2) | ||
| POWERLINE_SOFTWARE_COLLECTIONS_COLOR=(231 62 0 0 7 5) | ||
| POWERLINE_TEMPERATURE_COLOR=(-1 240 0 0 -1 0) | ||
| POWERLINE_TERRAFORM_ENV_COLOR=(231 182 0 0 7 4) | ||
| POWERLINE_TIME_COLOR=(33 17 0 0 5 4) | ||
| POWERLINE_WIFI_STRENGTH_COLOR=(-1 148 0 0 -1 3) | ||
|
|
||
| # vim: ft=sh et sts=4 sw=4 tw=120 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,13 @@ | ||
| GitHub | ||
| Kubernetes | ||
| Powerline | ||
| Terraform | ||
| chroot | ||
| config | ||
| CMake | ||
| GitHub | ||
| hostname | ||
| js | ||
| Kubernetes | ||
| Powerpuff | ||
| Powerline | ||
| runtime | ||
| Terraform | ||
| username | ||
| workspace |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| Power2lines | ||
| *********** | ||
|
|
||
| This ``power2line`` theme rearranges the sections of :doc:`powerline_plus`, | ||
| but on two rows instead of one. | ||
| That is, the data sections are displayed on a first row, and the interactive | ||
| prompt forms a second row. | ||
| This gives room for long command lines, and let the user find the prompt always | ||
| at the same location. | ||
|
|
||
|
|
||
| Preview | ||
| ======= | ||
|
|
||
| If there is nothing special about the current context, the appearance of | ||
| Powerline might be as simple as this: | ||
|
|
||
| .. image:: images/power2lines-short.png | ||
|
|
||
| A slightly longer prompt with more data: | ||
|
|
||
| .. image:: images/power2lines-med.png | ||
|
|
||
| When Liquid Prompt is displaying nearly everything, it may look like this: | ||
|
|
||
| .. image:: images/power2lines-long.png | ||
|
|
||
|
|
||
| Setup & Configuration | ||
| ===================== | ||
|
|
||
| This theme as the same core configuration than the :doc:`powerline_plus` theme. | ||
|
|
||
| Theme Configuration | ||
| ------------------- | ||
|
|
||
| Colors | ||
| ______ | ||
|
|
||
| .. attribute:: POWERLINE_LINE_COLOR | ||
| :type: array<int> | ||
| :value: (240 -1 0 0 14 -1) | ||
|
|
||
| Color of the decorative lines. | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| Powerpuff | ||
| ********* | ||
|
|
||
| This ``powerpuff`` theme go even further in rearranging the sections of the | ||
| :doc:`powerline_plus` theme: | ||
|
|
||
| - Data sections are spread on two rows, | ||
| - each of which has a left-aligned and a right-aligned section. | ||
| - A third row hosts the actual interactive prompt. | ||
| - A horizontal line link the left and right sections of the first line. | ||
| - A new line is drawn before the first row. | ||
|
|
||
| The meta-sections are thus less prone to move around when more data is | ||
| displayed, and the user will find it easier to spot new information. | ||
| The horizontal line and the new line gap also helps in parsing screens with a | ||
| lot of history. | ||
|
|
||
|
|
||
| Preview | ||
| ======= | ||
|
|
||
| If there is nothing special about the current context, the appearance of | ||
| Powerline might be as simple as this: | ||
|
|
||
| .. image:: images/powerpuff-short.png | ||
|
|
||
| A slightly longer prompt with more data: | ||
|
|
||
| .. image:: images/powerpuff-med.png | ||
|
|
||
| When Liquid Prompt is displaying nearly everything, it may look like this: | ||
|
|
||
| .. image:: images/powerpuff-long.png | ||
|
|
||
|
|
||
| Setup & Configuration | ||
| ===================== | ||
|
|
||
| This theme as the same core configuration than the :doc:`power2lines` theme. | ||
|
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.