Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(fix) ng complete: Suggest different way to capture output to .bashrc/.zshrc #2635

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down Expand Up @@ -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
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