Skip to content

Commit

Permalink
Mark init command as optional during install
Browse files Browse the repository at this point in the history
Also remove some trailing whitespace in install docs.
  • Loading branch information
weitzman committed Feb 25, 2016
1 parent c324d0e commit c34dde8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions docs/install-alternative.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ Follow the instructions below, or [watch a video by Drupalize.me](https://youtu.

1. [Install Composer globally](https://getcomposer.org/doc/00-intro.md#globally).
1. Add composer's `bin` directory to the system path by placing `export PATH="$HOME/.composer/vendor/bin:$PATH"` into your ~/.bash_profile (Mac OS users) or into your ~/.bashrc (Linux users).
1. Install latest stable Drush: `composer global require drush/drush`.
1. Verify that Drush works: `drush status`
1. Install latest stable Drush: `composer global require drush/drush`.
1. Verify that Drush works: `drush status`

#### Notes
#### Notes
* Update to latest release (per your specification in ~/.composer/composer.json): `composer global update`
* Install a specific version of Drush:
* Install a specific version of Drush:

# Install a specific version of Drush, e.g. Drush 7.1.0
composer global require drush/drush:7.1.0
Expand Down
4 changes: 2 additions & 2 deletions docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ php drush.phar core-status
chmod +x drush.phar
sudo mv drush.phar /usr/local/bin/drush

# Enrich the bash startup file with completion and aliases.
# Optional. Enrich the bash startup file with completion and aliases.
drush init
```

Expand All @@ -25,7 +25,7 @@ drush init

Install a site-local Drush
-----------------
In addition to the global Drush, it is recommended that Drupal 8 sites are [built using Composer, with Drush listed as a dependency](https://github.com/drupal-composer/drupal-project).
In addition to the global Drush, it is recommended that Drupal 8 sites be [built using Composer, with Drush listed as a dependency](https://github.com/drupal-composer/drupal-project).

1. When you run `drush`, the global Drush is called first and then hands execution to the site-local Drush. This gives you the convenience of running `drush` without specifying the full path to the executable, without sacrificing the safety provided by a site-local Drush.
2. Optional: Copy the [examples/drush.wrapper](https://github.com/drush-ops/drush/blob/master/examples/drush.wrapper) file to your project root and modify to taste. This is a handy launcher script; add --local here to turn off all global configuration locations, and maintain consistency over configuration/aliases/commandfiles for your team.
Expand Down

0 comments on commit c34dde8

Please sign in to comment.