Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sjorek/phpunit-bash-completion
PHPUnit shell completion for Bash
https://github.com/sjorek/phpunit-bash-completion
bash bash-completion phpunit
Last synced: 15 days ago
JSON representation
PHPUnit shell completion for Bash
- Host: GitHub
- URL: https://github.com/sjorek/phpunit-bash-completion
- Owner: sjorek
- License: bsd-3-clause
- Created: 2017-10-23T14:48:23.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-24T10:20:12.000Z (almost 7 years ago)
- Last Synced: 2024-11-17T13:11:54.474Z (3 months ago)
- Topics: bash, bash-completion, phpunit
- Language: Shell
- Size: 33.2 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# [PHPUnit shell completion for Bash](https://sjorek.github.io/phpunit-bash-completion/)
The [`phpunit-completion.bash`](phpunit-completion.bash)
script provides shell completion in bash for [PHPUnit](https://phpunit.de).The completion routines support completing all options and arguments provided by PHPUnit.
## Installation
1. Ensure you installed:
* `bash` version >= 4.1
* `bash-completion` version >= 2.0
* `grep` in `$PATH`
* `awk` in `$PATH`
* `cut` in `$PATH`
* `sed` in `$PATH`
* `tr` in `$PATH`
* ... and last but not least, `phpunit` version >= 6.4 of course!2. Install `phpunit-completion.bash` file:
* a.) Either, place it in a `bash-completion.d` folder, like:
* `/etc/bash-completion.d`
* `/usr/local/etc/bash-completion.d`
* `~/.bash-completion.d`
* b.) Or, copy it somewhere (e.g. `~/.phpunit-completion.sh`) and put the
following line in your `.bashrc`:`source ~/.phpunit-completion.sh`
* c.) If you're using [MacPorts](https://www.macports.org) then you should
take a look at my [MacPorts-PHP](https://sjorek.github.io/macports-php)
repository.3. Optionally nail down the php interpreter used to determine certain
completions by adding the following line in your `~/.bash_profile`:export PHPUNIT_COMPLETION_PHP=/path/to/your/php
## Contributing
Look at the [contribution guidelines](CONTRIBUTING.md)
## Want more?
There is a [composer-bash-completion](https://sjorek.github.io/composer-bash-completion/)
complementing the bash-completion. And - once more - if you're using [MacPorts](http://macports.org),
take a look at my [MacPorts-PHP](https://sjorek.github.io/macports-php/)
repository.Cheers!