-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Add a 'theme' for OMP, so the internal themes don't clash with it. #2100
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
Merged
Merged
Changes from 5 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
04bc93c
Add a 'theme' for OMP, so the internal themes don't clash with it.
seefood 684bb02
Add theme to clean_files
seefood da30b6c
Add screenshot to the docs
seefood 53f0c03
Correct the name of the default theme in the docs.
seefood 221c73e
Merge branch 'master' of https://github.com/bash-it/bash-it into ira/…
seefood 1db67fd
keeping it cleaner
seefood 153b4c5
Merge branch 'master' of https://github.com/bash-it/bash-it into ira/…
seefood 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
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,15 @@ | ||
| .. _oh-my-posh: | ||
|
|
||
| Oh-My-Posh Theme | ||
| ================ | ||
|
|
||
| The oh-my-posh ״theme״ is really a plug to a whole other system | ||
| of managing your prompt. To use it please start here: | ||
| `Oh-My-Posh homepage <https://ohmyposh.dev/>`_ | ||
|
|
||
| It is beyond the scope of bash-it to install and manage oh-my-posh, | ||
| this theme is here just to make sure your OMP setup doesn't clash | ||
| with other bash-it themes. Once installed, OMP will load a default | ||
| OMP theme (jandedobbeleer), which you can then customize or override. | ||
|
|
||
| Note: Nerd Fonts are highly recommended, as most of the themes are graphic candies. |
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,20 @@ | ||
| # shellcheck shell=bash | ||
|
|
||
| if _command_exists oh-my-posh; then | ||
| export POSH_THEME=${POSH_THEME:-https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/v$(oh-my-posh --version)/themes/jandedobbeleer.omp.json} | ||
| eval "$(oh-my-posh --init --shell bash --config "${POSH_THEME}")" | ||
| else | ||
| _log_warning "The oh-my-posh binary was not found on your \$PATH." | ||
| _log_warning "Falling back to your existing \$PS1." | ||
| _log_warning | ||
| _log_warning "*** Note:" | ||
| _log_warning "The oh-my-posh ״theme״ is really a plug to a whole other system" | ||
| _log_warning "of managing your prompt. To use it please start here:" | ||
| _log_warning "https://ohmyposh.dev/" | ||
| _log_warning | ||
| _log_warning "It is beyond the scope of bash-it to install and manage oh-my-posh," | ||
| _log_warning "this theme is here just to make sure your OMP setup doesn't clash" | ||
| _log_warning "with other bash-it themes. Once installed, OMP will load a default" | ||
| _log_warning "OMP theme (jandedobbeleer), which you can then" | ||
| _log_warning "customize or override." | ||
| fi | ||
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.