Comments (4)
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.
@rquadling bash_completion is installed in first RUN. I want use it on docker
from symfony-console-autocomplete.
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.
yup, you need another line like
RUN echo "source /etc/profile.d/bash_completion.sh" > ~/.bashrc
from symfony-console-autocomplete.
Related Issues (20)
- Usage with docker HOT 4
- Doesn't work on Mac HOT 8
- composer autocompletes, console only globs HOT 2
- symfony-autocomplete: command not found HOT 9
- How to utilise git's branch auto-completion for another program?
- Usage in cygwin + win32 PHP: cannot find non standard script HOT 5
- 48
- Doesn't work for the "symfony" cli tool HOT 3
- PHP Fatal error: Uncaught TypeError: Argument 1 passed to Symfony\Component\Process\Process::__construct() must be of the type array, string given HOT 2
- Contribute this to symfony/console HOT 1
- Compatibility with Symfony local server HOT 2
- ZSH completion fails when descriptions contain quotes or <'s HOT 14
- Autocompletion not working with Acquia CLI HOT 5
- Not working with Symfony 6. HOT 4
- PHP 8.1 deprecated return type HOT 13
- Bats tests don't test for shell code correctness HOT 3
- bin-stub hard-encodes the name to vendor directory
- Symfony 7: missing support
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 symfony-console-autocomplete.