Skip to content

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...
@gaelicWizard gaelicWizard force-pushed the theme/powerline-base branch from b16d7ef to d322992 Compare March 4, 2022 22:51
@seefood seefood self-assigned this Nov 7, 2024
@seefood
Copy link
Contributor

seefood commented Nov 7, 2024

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

@seefood seefood marked this pull request as draft December 28, 2024 19:14
@seefood seefood marked this pull request as ready for review December 28, 2024 19:15
Copy link
Contributor

@seefood seefood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems legit.

@seefood seefood merged commit bbbf62a into Bash-it:master Dec 28, 2024
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