-
-
Notifications
You must be signed in to change notification settings - Fork 670
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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,13 @@ | ||
# starship plugin | ||
|
||
Initializes [starship](https://github.com/starship/starship), the minimal, blazing-fast, and infinitely customizable prompt for any shell! | ||
|
||
To use it, add `starship` to the plugins array in your `.bashrc` file: | ||
|
||
```bash | ||
plugins=(... starship) | ||
``` | ||
|
||
**Note:** you have to [install starship](https://github.com/starship/starship?tab=readme-ov-file#step-1-install-starship) first. | ||
|
||
## ⚠️ ENABLING THIS PLUGIN WILL UNSET YOUR OSH_THEME VARIABLE |
This file contains 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,10 @@ | ||
#! bash oh-my-bash.module | ||
|
||
# Check if starship is installed | ||
if _omb_util_command_exists starship; then | ||
# ignore oh-my-bash theme | ||
unset -v OSH_THEME | ||
eval "$(starship init bash)" | ||
else | ||
echo '[oh-my-bash] starship not found, please install it from https://github.com/starship/starship' | ||
fi |