Skip to content

Commit 2fe5772

Browse files
committed
Merge pull request #109 from georgelesica-wf/zsh_completion_instructions
CP-1164 Update readme with zsh instructions for completions.
2 parents 1ab9bd8 + ede4cbb commit 2fe5772

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,21 @@ fi
115115
Next time you load a Bash session you'll have basic completions for the `ddev`
116116
alias described above.
117117

118+
#### Zsh Completion
119+
120+
The Bash completion script will work for Zsh as well, but requires a little
121+
configuration. The following lines must all be found somewhere (and in this
122+
order, though they needn't be adjacent to one another) in your `.zshrc` file,
123+
or a file sourced from it:
124+
125+
```
126+
autoload -U compinit
127+
compinit
128+
autoload -U bashcompinit
129+
bashcompinit
130+
source <path/to/ddev-completion.sh>
131+
```
132+
118133
#### Configuration
119134
In order to configure `dart_dev` for a specific project, run `ddev init` or
120135
`pub run dart_dev init` to generate the configuration file. This should create a

0 commit comments

Comments
 (0)