Skip to content
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

theme/powerline base: cleanup and incorporate defaults #2059

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

gaelicWizard
Copy link
Contributor

@gaelicWizard gaelicWizard commented Jan 24, 2022

Description

Minor cleanup and alsö apply defaults to most variables in the theme/powerline.base file. This should make no changes to any existing themes.

Motivation and Context

This should allow easier modificaiton/creation of powerline-based themes, as well as reduce duplicative code in existing themes. The idea is to reduce duplicate "base" files from powerline themes.

How Has This Been Tested?

Careful layering of includes to ensure I got the right bits.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • My code follows the code style of this project.
  • If my change requires a change to the documentation, I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • If I have added a new file, I also added it to clean_files.txt and formatted it using lint_clean_files.sh.
  • I have added tests to cover my changes, and all the new and existing tests pass.

@gaelicWizard gaelicWizard marked this pull request as ready for review January 25, 2022 21:41
@gaelicWizard gaelicWizard force-pushed the theme/powerline-base branch 2 times, most recently from 2333e92 to f0559e8 Compare January 26, 2022 19:44
@gaelicWizard gaelicWizard force-pushed the theme/powerline-base branch 4 times, most recently from 47d52d0 to 5ef4b0f Compare February 13, 2022 05:56
- Local some variables,
- install reasonable defaults, based on `theme/powerline-plain` which doens't use the special font,
- Use `\D{fmt}` instead of `$(date +fmt)`.
Alsö:
- Use `\u` instead of `${SHORT_USER:-${USER?}}`.
- Use `if`/`then` properly.
- Lose some whitespace from prompt characters; that's what padding is for.

TODO:
- prompt character prefix/suffix support
- use variables rather than subshells...
@seefood
Copy link
Contributor

seefood commented Nov 7, 2024

Hey there. Want to resolve the conflicts and have me review it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants