From 2225027e82b431255094482b713e79fbacd3de6b Mon Sep 17 00:00:00 2001 From: Carlo Dapor Date: Mon, 10 Oct 2016 21:52:40 +0200 Subject: [PATCH] fix(docs): Correct the usage of redirecting the output from `ng completion`. Close #2635 --- README.md | 8 ++++---- packages/angular-cli/utilities/completion.sh | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index be7b387a4e24..56cbae5772d3 100644 --- a/README.md +++ b/README.md @@ -276,19 +276,19 @@ To turn on auto completion use the following commands: For bash: ```bash -ng completion >> ~/.bashrc +ng completion 1>> ~/.bashrc 2>>&1 source ~/.bashrc ``` For zsh: ```bash -ng completion >> ~/.zshrc +ng completion 1>> ~/.zshrc 2>>&1 source ~/.zshrc ``` Windows users using gitbash: ```bash -ng completion >> ~/.bash_profile +ng completion 1>> ~/.bash_profile 2>>&1 source ~/.bash_profile ``` @@ -350,7 +350,7 @@ npm install d3 --save npm install @types/d3 --save-dev ``` -If the library doesn't have typings available at `@types/`, you can still use it by +If the library doesn't have typings available at `@types/`, you can still use it by manually adding typings for it: ``` // in src/typings.d.ts diff --git a/packages/angular-cli/utilities/completion.sh b/packages/angular-cli/utilities/completion.sh index 837f1b5d4d89..9230ec4095e8 100644 --- a/packages/angular-cli/utilities/completion.sh +++ b/packages/angular-cli/utilities/completion.sh @@ -2,7 +2,8 @@ # # ng command completion script # -# Installation: ng completion >> ~/.bashrc (or ~/.zshrc) +# Installation: ng completion 1>> ~/.bashrc 2>>&1 +# or ng completion 1>> ~/.zshrc 2>>&1 # ng_opts='b build completion doc e2e g generate get github-pages:deploy gh-pages:deploy h help i init install lint make-this-awesome new s serve server set t test v version -h --help'