Skip to content

Commit

Permalink
fix(docs): Correct the usage of redirecting the output from `ng compl…
Browse files Browse the repository at this point in the history
…etion`.

Close #2635
  • Loading branch information
catull authored and filipesilva committed Oct 10, 2016
1 parent 699ebba commit 2225027
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion packages/angular-cli/utilities/completion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 2225027

Please sign in to comment.