Code Monkey home page Code Monkey logo

Comments (12)

jonmosco avatar jonmosco commented on July 17, 2024

Can you provide a screenshot of this behavior?

Also, when running this, can you start your environment with the --norc flag to ensure its not a user setting?

Which version of bash are you using?

from kube-ps1.

jonmosco avatar jonmosco commented on July 17, 2024

Any updates regarding this issue you reported?

from kube-ps1.

sirKaskadir avatar sirKaskadir commented on July 17, 2024

Hi! Sorry for my late response.
Well it’s hard to give screenshot of a completion. I can give an example:

kubectl g[tab]
Will give kubectl get outcome and it work for all other commands. But let’s say that I for instance have a pod named mypod.
If I do:
kubectl logs -f my[tab].
Than it won’t give me a name of my pod which is quite painful because I need to copy it now :(
It worked just before I’ve installed kube-ps1.

I’ve tried bash 3 and 4 but it didn’t change anything.
Oh, and I use MacOS, this could make a difference.

from kube-ps1.

jonmosco avatar jonmosco commented on July 17, 2024

from kube-ps1.

sirKaskadir avatar sirKaskadir commented on July 17, 2024

Forgot to mension that I even removed kube-ps1 and it didn’t help.. now I only tried to source completion but it’s every time the same. I can install it back but would it help?

from kube-ps1.

jonmosco avatar jonmosco commented on July 17, 2024

from kube-ps1.

jonmosco avatar jonmosco commented on July 17, 2024

I have tried to reproduce this issue on several installs (docker), and can not reproduce. The tab completion seems to be working fine with and without kube-ps1. What does your configuration look like where you are sourcing the prompt?

from kube-ps1.

sirKaskadir avatar sirKaskadir commented on July 17, 2024
source <(kubectl completion bash)

if [ -f $(brew --prefix)/etc/bash_completion ]; then
  . $(brew --prefix)/etc/bash_completion
fi

Thank you for your efforts!
It might be a coincidence, I'm not saying it's not 😢

from kube-ps1.

jonmosco avatar jonmosco commented on July 17, 2024

What about your PS1 ?

from kube-ps1.

thomasliddledba avatar thomasliddledba commented on July 17, 2024

I tried to reproduce this issue but can't seem to do it. Would be interested in your PS1. Could you post that?
$ uname --all

Linux <machinename> 4.4.0-116-generic #140-Ubuntu SMP Mon Feb 12 21:23:04 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

~/.bashrc

source <(kubectl completion bash)
KUBE_PS1_SYMBOL_COLOR=green
KUBE_PS1_CTX_COLOR=green
KUBE_PS1_NS_COLOR=magenta
KUBE_PS1_BG_COLOR=''
KUBE_PS1_SYMBOL="⎈"
source ~/myworkdir/kube-ps1/kube-ps1.sh
PS1='[\u@\h] [\w] [$(parse_git_branch)] $(kube_ps1)\n'
PS1+='  |--> '
export PS1

screenshot from 2018-03-13 21-16-31

from kube-ps1.

jonmosco avatar jonmosco commented on July 17, 2024

I am going to close this out today unless its reported as still affecting the command line completion. Please let me know or I will close it out by EOD.

from kube-ps1.

jonmosco avatar jonmosco commented on July 17, 2024

Closing issue.

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.