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

complete from bin/magento #12

Open
WileESpaghetti opened this issue Apr 19, 2017 · 2 comments
Open

complete from bin/magento #12

WileESpaghetti opened this issue Apr 19, 2017 · 2 comments

Comments

@WileESpaghetti
Copy link

We don't have the magento command installed globally on most of our servers, so we typically call the command with bin/magento from the web root.

Adding bin/magento to the list passed to complete at the end of the file fixes the issue for us.

complete -o default -F _magento2 magento bin/magento
@yvoronoy
Copy link
Owner

Thank you for reporting.
Actually, I use bin/magento and it's works for me. I've tested on OSX and centos. Could you provide what OS do you use? And what bash version is?

@WileESpaghetti
Copy link
Author

WileESpaghetti commented Apr 19, 2017

It's the bash that comes with kubuntu 16.10

bash --version
GNU bash, version 4.3.46(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

My bashrc has a couple of other completions loaded too, so it could be something there too. Here's the part I added to the default.

export GOPATH=$HOME/Workspace/gocode
export PATH=$PATH:$GOPATH/bin:$HOME/bin:$HOME/bin/go_appengine

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"  # This loads nvm

export JAVA_HOME=$HOME/bin/jdk
export PATH=$PATH:$JAVA_HOME/bin
alias docker_clean_images='docker rmi $(docker images -a --filter=dangling=true -q)'
alias docker_clean_ps='docker rm $(docker ps --filter=status=exited --filter=status=created -q)'
alias 64d='base64decode'
source /usr/lib/google-cloud-sdk/completion.bash.inc

# https://kubernetes.io/docs/user-guide/kubectl/kubectl_completion/
source <(kubectl completion bash)

# sudo curl -o /etc/bash_completion.d/magento2-bash-completion https://raw.githubusercontent.com/yvoronoy/magento2-bash-completion/master/magento2-bash-completion-enterprise
source $HOME/bin/magento2-bash-completion-enterprise

@Zifius Zifius mentioned this issue May 15, 2017
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