-
Notifications
You must be signed in to change notification settings - Fork 967
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kube-ps1 #467
Comments
Instead rewrite PS1 variable I achieved this by add
|
You need to configure # customize Git prompt below with kube_ps1
function prompt_callback() {
echo -n " $(kube_ps1)"
} Full excerpt from my # add kube_ps1 function for a Bash prompt / PS1 for k8s
if [ -f "$(brew --prefix)/opt/kube-ps1/share/kube-ps1.sh" ]; then
source "$(brew --prefix)/opt/kube-ps1/share/kube-ps1.sh"
fi
# customize Git prompt below with kube_ps1
function prompt_callback() {
echo -n " $(kube_ps1)"
}
# Bash prompt / PS1 for Git -- prompt is dynamic and uses prompt_callback above
if [ -f "$(brew --prefix)/opt/bash-git-prompt/share/gitprompt.sh" ]; then
__GIT_PROMPT_DIR=$(brew --prefix)/opt/bash-git-prompt/share
source "$(brew --prefix)/opt/bash-git-prompt/share/gitprompt.sh"
fi |
Seems to me that this issue could be closed with this solution. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I would like to run git-prompt together with kube-ps1 https://github.com/jonmosco/kube-ps1
but any try f...s up the whole prompt.
Any ideas on who to best achieve this?
The text was updated successfully, but these errors were encountered: