Giter Club home page Giter Club logo

Comments (4)

rquadling avatar rquadling commented on May 26, 2024

It looks like bash-completion is not installed. That is the script that has the bash function that you are missing.

In my MacOS .bash_profile, my HomeBrew installed bash-completion added ..

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

I suspect you'll need to have something similar in your .bashrc (if that is the right file ... I'm never sure which one should be used).

from symfony-console-autocomplete.

HarasimowiczKamil avatar HarasimowiczKamil commented on May 26, 2024

@rquadling bash_completion is installed in first RUN. I want use it on docker

from symfony-console-autocomplete.

rquadling avatar rquadling commented on May 26, 2024

Installing bash_completion only places the necessary code onto the drive. It does not write the necessary command to ~/.bashrc which is why things are failing.

If you shell into your image, and run set | grep 'BASH_COMPLETION[_=]', what do you get?

On my MacOS host, I get ...

BASH_COMPLETION=/usr/local/etc/bash_completion
BASH_COMPLETION_COMPAT_DIR=/usr/local/etc/bash_completion.d
BASH_COMPLETION_DIR=/usr/local/etc/bash_completion.d

These envvars are set by the execution of the /etc/bash_completion on MacOS. I think this command (or something similar for non MacOS) is missing for the shell you are running.

from symfony-console-autocomplete.

flaushi avatar flaushi commented on May 26, 2024

yup, you need another line like

RUN echo "source /etc/profile.d/bash_completion.sh" > ~/.bashrc

from symfony-console-autocomplete.

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.