Skip to content

Commit

Permalink
Merge pull request #1097 from colans/zsh-autocompletion
Browse files Browse the repository at this point in the history
Explain how to set up ZSH autocompletion in the docs
  • Loading branch information
weitzman committed Jan 15, 2015
2 parents 9dd205d + 5c7a239 commit 6ad8c93
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/configure.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ Configure
your .bashrc (or equivalent): source /path/to/drush/examples/example.bashrc

* If you didn't source it the step above, see top of
[drush.complete.sh](https://raw.githubusercontent.com/drush-ops/drush/master/drush.complete.sh) file for instructions adding bash completion for drush
command to your shell. Once configured, completion works for site aliases,
[drush.complete.sh](https://raw.githubusercontent.com/drush-ops/drush/master/drush.complete.sh) file for instructions on adding completion for drush
commands to your shell. Once configured, completion works for site aliases,
command names, shell aliases, global options, and command-specific options.

* Optional. If [drush.complete.sh](https://raw.githubusercontent.com/drush-ops/drush/master/drush.complete.sh) is being sourced (ideally in
Expand Down
7 changes: 7 additions & 0 deletions drush.complete.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@
# ~/.bash_completion or ~/.bash_profile files. Alternatively, source
# examples/example.bashrc instead, as it will automatically find and source
# this file.
#
# If you're using ZSH instead of BASH, add the following to your ~/.zshrc file
# and source it.
#
# autoload bashcompinit
# bashcompinit
# source /path/to/your/drush.complete.sh

# Ensure drush is available.
which drush > /dev/null || alias drush &> /dev/null || return
Expand Down

0 comments on commit 6ad8c93

Please sign in to comment.