oh-my-bash icon indicating copy to clipboard operation
oh-my-bash copied to clipboard

Feature Request: integrate kube-ps1 as OMB plugin

Open rafacouto opened this issue 3 months ago • 1 comments

Description

I recently installed oh-my-bash and it's working great, but I'm unable to get kube-ps1 integration working properly. kube-ps1 is a very popular and useful plugin for Kubernetes users that displays the current Kubernetes context and namespace in the bash prompt.

kube-ps1 in action

Current Situation

  • kube-ps1 is not included as an oh-my-bash
  • Manual installation requires cloning the repository and custom configuration
  • The integration with oh-my-bash's theme system is not straightforward
  • Other popular shell frameworks like oh-my-zsh already include kube-ps1 as a plugin.

Proposed Solution

Add kube-ps1 as an plugin in oh-my-bash with:

  • Proper plugin initialization
  • Theme integration support
  • Standardized configuration options
  • Documentation

Why this is valuable

  • Kubernetes is widely used in development and DevOps
  • kube-ps1 has over 2.8k stars on GitHub indicating high demand
  • Would provide a consistent experience for Kubernetes users
  • Aligns with oh-my-bash's goal of providing useful plugins

Technical considerations

The plugin should:

  • Follow existing plugin structure
  • Integrate with the prompt system
  • Respect existing oh-my-bash configuration
  • Provide toggle enable/disable functionality

rafacouto avatar Oct 07 '25 11:10 rafacouto

Contributions are welcome. One may consider porting the corresponding Oh-My-Zsh plugin.

I should note one thing: the original kube-ps1 seems to be licensed under Apache 2.0 License, which is incompatible with the MIT license that Oh My Bash uses, so a special care is needed if any codes from the upstream kube-ps1 would be imported into Oh My Bash.

akinomyoga avatar Oct 07 '25 11:10 akinomyoga