Skip to content

Commit

Permalink
warning users that starship overrides zsh_theme
Browse files Browse the repository at this point in the history
  • Loading branch information
Heus-Sueh committed Oct 15, 2024
1 parent 7336b2c commit 0aa5707
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/starship/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ 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
2 changes: 2 additions & 0 deletions plugins/starship/starship.plugin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

# Check if starship is installed
if _omb_util_command_exists starship; then
# ignore oh-my-bash theme
unset OSH_THEME
eval "$(starship init bash)"
else
echo '[oh-my-bash] starship not found, please install it from https://github.com/starship/starship'
Expand Down

0 comments on commit 0aa5707

Please sign in to comment.