From 5f16ac32143535ea4ab91daf11861ce973898551 Mon Sep 17 00:00:00 2001 From: Carlo Dapor Date: Mon, 10 Oct 2016 21:52:40 +0200 Subject: [PATCH 1/2] Correct the usage of redirecting the output from `ng completion`. --- packages/angular-cli/utilities/completion.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/angular-cli/utilities/completion.sh b/packages/angular-cli/utilities/completion.sh index 907d724eaea4..918026170b3b 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' From 0141949dc0f38ef87835b9fd4e72260d24241a09 Mon Sep 17 00:00:00 2001 From: Carlo Dapor Date: Mon, 10 Oct 2016 22:15:13 +0200 Subject: [PATCH 2/2] Reflect the suggested fix for capturing the output of `ng completion` in README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 98f2ea544562..ab6d734cc8ea 100644 --- a/README.md +++ b/README.md @@ -274,19 +274,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 ``` @@ -344,7 +344,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