Skip to content

Instantly share code, notes, and snippets.

@sprankhub
Created November 6, 2015 12:26
Show Gist options
  • Save sprankhub/a386a2969ca7cc6f6552 to your computer and use it in GitHub Desktop.
Save sprankhub/a386a2969ca7cc6f6552 to your computer and use it in GitHub Desktop.
Fish Shell Autocompletion for the Magento 2 Shell Script
# Installation:
# Copy to ~/.config/fish/completions/magento.fish
# Open new or restart existing shell session
# Commands based on Magento 2.0.0-rc and the command
# bin/magento --raw --no-ansi list
# It is a static list since you probably do not have the magento shell script
# in your path.
complete -f -c magento -a --help;
complete -f -c magento -a -h;
complete -f -c magento -a --quiet;
complete -f -c magento -a -q;
complete -f -c magento -a --verbose;
complete -f -c magento -a -v;
complete -f -c magento -a -vv;
complete -f -c magento -a -vvv;
complete -f -c magento -a --version;
complete -f -c magento -a -V;
complete -f -c magento -a --ansi;
complete -f -c magento -a --no-ansi;
complete -f -c magento -a --no-interaction;
complete -f -c magento -a -n;
complete -f -c magento -a help;
complete -f -c magento -a list;
complete -f -c magento -a admin:user:create;
complete -f -c magento -a admin:user:unlock;
complete -f -c magento -a cache:clean;
complete -f -c magento -a cache:disable;
complete -f -c magento -a cache:enable;
complete -f -c magento -a cache:flush;
complete -f -c magento -a cache:status;
complete -f -c magento -a catalog:images:resize;
complete -f -c magento -a cron:run;
complete -f -c magento -a customer:hash:upgrade;
complete -f -c magento -a deploy:mode:set;
complete -f -c magento -a deploy:mode:show;
complete -f -c magento -a dev:source-theme:deploy;
complete -f -c magento -a dev:tests:run;
complete -f -c magento -a dev:urn-catalog:generate;
complete -f -c magento -a dev:xml:convert;
complete -f -c magento -a i18n:collect-phrases;
complete -f -c magento -a i18n:pack;
complete -f -c magento -a i18n:uninstall;
complete -f -c magento -a indexer:info;
complete -f -c magento -a indexer:reindex;
complete -f -c magento -a indexer:set-mode;
complete -f -c magento -a indexer:show-mode;
complete -f -c magento -a indexer:status;
complete -f -c magento -a info:adminuri;
complete -f -c magento -a info:backups:list;
complete -f -c magento -a info:currency:list;
complete -f -c magento -a info:dependencies:show-framework;
complete -f -c magento -a info:dependencies:show-modules;
complete -f -c magento -a info:dependencies:show-modules-circular;
complete -f -c magento -a info:language:list;
complete -f -c magento -a info:timezone:list;
complete -f -c magento -a maintenance:allow-ips;
complete -f -c magento -a maintenance:disable;
complete -f -c magento -a maintenance:enable;
complete -f -c magento -a maintenance:status;
complete -f -c magento -a module:disable;
complete -f -c magento -a module:enable;
complete -f -c magento -a module:status;
complete -f -c magento -a module:uninstall;
complete -f -c magento -a sampledata:deploy;
complete -f -c magento -a sampledata:remove;
complete -f -c magento -a sampledata:reset;
complete -f -c magento -a setup:backup;
complete -f -c magento -a setup:config:set;
complete -f -c magento -a setup:cron:run;
complete -f -c magento -a setup:db-data:upgrade;
complete -f -c magento -a setup:db-schema:upgrade;
complete -f -c magento -a setup:db:status;
complete -f -c magento -a setup:di:compile;
complete -f -c magento -a setup:di:compile-multi-tenant;
complete -f -c magento -a setup:install;
complete -f -c magento -a setup:performance:generate-fixtures;
complete -f -c magento -a setup:rollback;
complete -f -c magento -a setup:static-content:deploy;
complete -f -c magento -a setup:store-config:set;
complete -f -c magento -a setup:uninstall;
complete -f -c magento -a setup:upgrade;
complete -f -c magento -a theme:uninstall;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment