Skip to content

Commit 6a03540

Browse files
catullBrocco
authored andcommitted
fix(docs): Correct the usage of redirecting the output from ng completion.
Close #2635
1 parent a289a00 commit 6a03540

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -276,19 +276,19 @@ To turn on auto completion use the following commands:
276276

277277
For bash:
278278
```bash
279-
ng completion >> ~/.bashrc
279+
ng completion 1>> ~/.bashrc 2>>&1
280280
source ~/.bashrc
281281
```
282282

283283
For zsh:
284284
```bash
285-
ng completion >> ~/.zshrc
285+
ng completion 1>> ~/.zshrc 2>>&1
286286
source ~/.zshrc
287287
```
288288

289289
Windows users using gitbash:
290290
```bash
291-
ng completion >> ~/.bash_profile
291+
ng completion 1>> ~/.bash_profile 2>>&1
292292
source ~/.bash_profile
293293
```
294294

@@ -350,7 +350,7 @@ npm install d3 --save
350350
npm install @types/d3 --save-dev
351351
```
352352

353-
If the library doesn't have typings available at `@types/`, you can still use it by
353+
If the library doesn't have typings available at `@types/`, you can still use it by
354354
manually adding typings for it:
355355
```
356356
// in src/typings.d.ts

packages/angular-cli/utilities/completion.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
#
33
# ng command completion script
44
#
5-
# Installation: ng completion >> ~/.bashrc (or ~/.zshrc)
5+
# Installation: ng completion 1>> ~/.bashrc 2>>&1
6+
# or ng completion 1>> ~/.zshrc 2>>&1
67
#
78

89
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'

0 commit comments

Comments
 (0)