Created
September 8, 2016 11:18
-
-
Save mslabko/bf99f14213d1557fe73b6239b08911f5 to your computer and use it in GitHub Desktop.
Make magento CLI tool usage with autocomplete
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### | |
# | |
# Make magento CLI tool usage with autocomplete | |
# Based on https://github.com/bamarni/symfony-console-autocomplete | |
# | |
## | |
# Step 1 | |
composer global require bamarni/symfony-console-autocomplete | |
# Step 2 | |
# change directory to Magento root. Magento must be installed! | |
# cd /var/www/magento/magento2ce | |
# Step 3 | |
# BASH - Ubuntu / Debian | |
`composer global config bin-dir --absolute`/symfony-autocomplete bin/magento | sudo tee /etc/bash_completion.d/magento | |
# BASH - Mac OSX (with Homebrew "bash-completion") | |
`composer global config bin-dir --absolute`/symfony-autocomplete bin/magento > $(brew --prefix)/etc/bash_completion.d/magento | |
# ZSH - Config file | |
`composer global config bin-dir --absolute`/symfony-autocomplete bin/magento > ~/.composer_completion && echo "source ~/.composer_completion" >> ~/.zshrc | |
# Step 4 | |
# Reopen terminal (or run bash / zsh ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment