-
Notifications
You must be signed in to change notification settings - Fork 27
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
Support completion wrapper for multi-app completion #44
Comments
Do you know if there's any identifying about a Symfony app other than the script being |
I have no idea. Right now I'm using universal bash script (see https://gist.github.com/aik099/1a72ab19beb3038fbb3e) that would auto-complete for |
Right main completion line (at least in Bash hook) looks like this: RESULT="$(/home/alex/web/d/in-portal.53x/in-portal _completion)"; Then we can use some PHP code here to use actual invoked script name instead of hardcoding Or we actually can support static hook generation once (not at every shell login as now) and then user can place it where he needs. But this is more what #30 needs. |
Changing above line to this did the trick: RESULT=$(${1} _completion); In fact I think we can safely do this in any case because it won't hurt to use actual app to get completion for instead of app, used to generate the hook. If we don't do this, then we should at least use |
PR created. |
Consider such use case:
app
executable PHP script in it's root folderapp TAB
should get project-relevant completionsCurrently I have to install completion hooks for each project separately, which isn't very user friendly.
Also I'm forced to use
-p
option because otherwise I get no completion:The text was updated successfully, but these errors were encountered: