Giter Site home page Giter Site logo

Comments (4)

marco-gallegos avatar marco-gallegos commented on June 9, 2024

in the meanwhile you can try to use a alias like 'alias docker-compose="docker compose"' in your .bashrc

from oh-my-bash.

akinomyoga avatar akinomyoga commented on June 9, 2024

I don't think updating this will make the completion for docker compose work. The completion for docker compose is a part of the completion for the docker command, so you can just set up the completion for the docker.

The docker CLI provides the completion script, and it should be somewhere in your system if you install docker. For example, it might be located at something like /usr/share/bash-completion/completions/docker or /etc/bash_completion.d/docker.sh. If it is the case, as far as you have bash-completion, the completion should be automatically available without any plugin.

Do you have bash-completion in your system? Do you have any docker files in /usr/share/bash-completion/completions or in /etc/bash_completion.d?

from oh-my-bash.

akinomyoga avatar akinomyoga commented on June 9, 2024

Meanwhile, maybe I can still update this script to the latest version of Docker Compose v1, though it doesn't make the completion for docker compose work.

https://github.com/docker/compose/blob/v1/contrib/completion/bash/docker-compose

from oh-my-bash.

akinomyoga avatar akinomyoga commented on June 9, 2024

OK, the problem seems to be that the docker completion in this repository (completions/docker.completion.sh) is so old that it doesn't support the recent plugin completions. We can update this, though I think as far as bash-completion and docker are properly installed in the user's system, the user doesn't need to enable those completions bundled in Oh My Bash.

from oh-my-bash.

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.