Skip to content
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

installing bash completion fails on ubuntu 18 ddev 1.1 #1087

Closed
tmotyl opened this issue Aug 28, 2018 · 2 comments
Closed

installing bash completion fails on ubuntu 18 ddev 1.1 #1087

tmotyl opened this issue Aug 28, 2018 · 2 comments

Comments

@tmotyl
Copy link
Contributor

tmotyl commented Aug 28, 2018

After installing recent ddev I tried to install bash completion but it failed with an error:

/tmp/ddev_bash_completion.sh
/tmp/ddev_bash_completion.sh: 14: /tmp/ddev_bash_completion.sh: Syntax error: "(" unexpected (expecting "}")

I'm using ubuntu 18 with zsh installed.

@rfay
Copy link
Member

rfay commented Sep 14, 2018

So were you trying to install bash completions for zsh? or run ddev_bash_completion using zsh? (Sorry, missed this when I was out). We haven't yet implemented zsh completions, because the cobra project hadn't really landed zsh completion last I checked. It looks like it's still a WIP, see spf13/cobra#107 - but they do have the basic command structure in there.

@rfay
Copy link
Member

rfay commented Sep 20, 2018

I just tested on Ubuntu 16.04 and it worked fine; The way to do this (if bash completion is installed) is to sudo mkdir -p /etc/bash_completion.d/ddev && sudo cp /tmp/ddev_bash_completion.sh /etc/bash_completion.d/ddev and then reload your window. You don't actually run the script yourself, and it's not useful in zsh. I'm going to go ahead and close this, but feel free to continue the conversation.

@rfay rfay closed this as completed Sep 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants