Code Monkey home page Code Monkey logo

Comments (10)

jonmosco avatar jonmosco commented on July 18, 2024 4

This is an issue with the oh-my-zsh plugin. The plugin and this project are not always in sync. I will update the plugin with the newest version as soon as I get a chance.

from kube-ps1.

tidnav avatar tidnav commented on July 18, 2024 1

Same issue here. Ubuntu 20.04

from kube-ps1.

Chr1stian avatar Chr1stian commented on July 18, 2024 1

I don't know if it just has to be set after some specific line (probably relating to oh-my-zsh) like for example:
eval "$(starship init zsh)"
But anyways, putting
PROMPT='$(kube_ps1)'$PROMPT
At the last line of .zshrc worked for me as well now. Thanks matteo!

from kube-ps1.

samurang87 avatar samurang87 commented on July 18, 2024 1

I have the same problem atm (MacOS) and putting PROMPT='$(kube_ps1)'$PROMPT at the end doesn't do anything πŸ˜•

from kube-ps1.

jonmosco avatar jonmosco commented on July 18, 2024 1

I'm not sure what your configuration looks like, but testing the prompt with the latest version of oh-my-zsh works for me on MacOS, and on MacOS in a containerized environment. The readme suggests to try your configuration with a minimal config to help debug: https://github.com/jonmosco/kube-ps1#bug-reports-and-shell-configuration

There are other factors to consider as well: do you have your kubeconfig file, kubectl installed, prompt initialization configured correctly, etc?

oh-my-zsh can be complicated to debug, although, if you try to use a default/base configuration, the process might be simpler.

My suggestion is to try a container with the latest oh-my-zsh image, and copy your kubectl config file in the container, and do the basic configuration as outlined in the README.

from kube-ps1.

Chr1stian avatar Chr1stian commented on July 18, 2024

Let me know if I should provide more information. Running Mac OS Ventura 13.1

from kube-ps1.

Chr1stian avatar Chr1stian commented on July 18, 2024

Do you recommend installing kube-ps1 another way than with the plugin then? I have come to rely heavily upon this awesome promt changer πŸ₯‡

from kube-ps1.

matteosilv avatar matteosilv commented on July 18, 2024

adding

 PROMPT='$(kube_ps1)'$PROMPT

at the end of .zshrc
works for me

from kube-ps1.

naviat avatar naviat commented on July 18, 2024

I have the same problem atm (MacOS) and putting PROMPT='$(kube_ps1)'$PROMPT at the end doesn't do anything πŸ˜•

Did you try to run kubeon -g command? @samurang87

from kube-ps1.

jonmosco avatar jonmosco commented on July 18, 2024

Please reopen if this issue persists.

from kube-ps1.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.