Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/0mars/zf-autocomplete
This project is intended to auto-complete zftool providers through bash
https://github.com/0mars/zf-autocomplete
Last synced: about 1 month ago
JSON representation
This project is intended to auto-complete zftool providers through bash
- Host: GitHub
- URL: https://github.com/0mars/zf-autocomplete
- Owner: 0mars
- Created: 2013-06-02T15:32:01.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-08-02T00:40:55.000Z (over 11 years ago)
- Last Synced: 2023-03-30T21:57:51.551Z (over 1 year ago)
- Size: 109 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
zf-autocomplete
===============This project is intended to auto-complete zftool providers through bash
**Zftool** is a pretty nifty feature from **Zend Framework**, however It's pretty tiring to remember all commands.
Using bash I've got a bunch of custom providers, and for that I have to remember all the commands or review them every time, so It's missing a killer feature which is the bash command auto-completion.
Installation
------------
**Clone it.**Then move to bash_autocompletion
sudo mv zf-autocomplete/zf /etc/bash_completion.d/
I you want to run it immediately in the same opened shell you can do the following command
. /etc/bash_completion.d/zf
It will automatically available in any new shell.
Custom Providers and Caching
----------------------------In case you are wondering, I've got many projects with many custom providers, will it **auto-complete** them?
The answer is **YES**, and it fetches the providers per directory basis. Since the fetching and filtering is a pretty heavy process, it caches the auto-completed options in /tmp/ so that it will only be slow the first time, and then it's going to be blazing fast.
Flush / Clear Cache
-----------------
Execute the following on the same directory to clear cache on that directory:
rm "/tmp/"\`pwd | sed -e 's:/:_:g'\`"_actions" && rm "/tmp/"\`pwd | sed -e 's:/:_:g'\`"_providers"