Comments (10)
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.
Same issue here. Ubuntu 20.04
from kube-ps1.
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.
I have the same problem atm (MacOS) and putting PROMPT='$(kube_ps1)'$PROMPT
at the end doesn't do anything π
from kube-ps1.
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.
Let me know if I should provide more information. Running Mac OS Ventura 13.1
from kube-ps1.
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.
adding
PROMPT='$(kube_ps1)'$PROMPT
at the end of .zshrc
works for me
from kube-ps1.
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.
Please reopen if this issue persists.
from kube-ps1.
Related Issues (20)
- Add variable to disable display context HOT 4
- possible to switch over to openshift logo/icon? HOT 1
- the KUBE_PS1* configuration env vars dominate tab completion HOT 3
- About `KUBE_PS1_SHELL` HOT 2
- Latest VScode 1.74 breaks kube-ps1: character not in range HOT 1
- display context name HOT 2
- installing in Windows HOT 2
- Running kube_ps1 in bash function returns blank HOT 5
- A few questions about the documentation HOT 1
- multiple prompts HOT 7
- Hide no cluster and default namespace option HOT 2
- Dynamic context colors HOT 3
- Automatically disable kube-ps1 when no context is available HOT 2
- Support fish shell HOT 1
- Add support for Warp HOT 1
- Couldn't Show βΈοΈ in My Prompt HOT 2
- Ability to display kube-ps1 on the right side of the prompt HOT 1
- Character not in range HOT 2
- Don't work with spaceship theme HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kube-ps1.