Skip to content

Commit

Permalink
docs: update autocomplete section
Browse files Browse the repository at this point in the history
  • Loading branch information
adhocore committed Sep 7, 2018
1 parent 22e00c1 commit a443885
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,17 @@ The phint commands and options can be [autocompleted](https://github.com/adhocor
Setting up auto complete:

```sh
mkdir -p ~/.oh-my-zsh/custom/plugins/phpcli && cd ~/.oh-my-zsh/custom/plugins/phpcli
[ -f ./phpcli.plugin.zsh ] || curl -sSLo ./phpcli.plugin.zsh https://raw.githubusercontent.com/adhocore/php-cli/master/phpcli.plugin.zsh
echo compdef _phpcli phint >> ./phpcli.plugin.zsh
chmod +x ./phpcli.plugin.zsh && source ./phpcli.plugin.zsh && cd -
mkdir -p ~/.oh-my-zsh/custom/plugins/ahccli && cd ~/.oh-my-zsh/custom/plugins/ahccli

[ -f ./ahccli.plugin.zsh ] || curl -sSLo ./ahccli.plugin.zsh https://raw.githubusercontent.com/adhocore/php-cli/master/ahccli.plugin.zsh

echo compdef _ahccli phint >> ./ahccli.plugin.zsh

chmod +x ./ahccli.plugin.zsh && source ./ahccli.plugin.zsh && cd -
```

Dont forget to [add](https://github.com/adhocore/php-cli#load-ahccli-plugin) `ahccli` into `plugins=(... ...)` list in `~/.zshrc` file.

## Usage

It can be used to quickly spin off new project containing all basic and default stuffs. The quick steps are as follows:
Expand Down

0 comments on commit a443885

Please sign in to comment.