Skip to content

Commit

Permalink
install: completion: fix/improve paths (#1478)
Browse files Browse the repository at this point in the history
* completion: ubuntu/debian: fix installation instructions

* path quote safety

* potential Mac fix
  • Loading branch information
casperdcl authored Jun 22, 2020
1 parent 9141bbf commit da38a2a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions content/docs/install/completion.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,15 @@ install and configure shell completion.
then edit `~/.bash_profile` and make sure that these lines appear:

```bash
if [ -f $(brew --prefix)/etc/bash_completion ]; then
. $(brew --prefix)/etc/bash_completion
if [ -f "$(brew --prefix)"/etc/bash_completion ]; then
. "$(brew --prefix)"/etc/bash_completion
fi
```

2. Run this command to install DVC completions:

```dvc
$ dvc completion -s bash | sudo tee /usr/local/etc/bash_completion.d/dvc
$ dvc completion -s bash | sudo tee "$(brew --prefix)"/etc/bash_completion.d/dvc
```

3. Finally, open a new terminal to activate completions.
Expand Down Expand Up @@ -90,7 +90,7 @@ install and configure shell completion.
2. Run this command to install DVC completions:

```dvc
$ dvc completion -s bash | sudo tee /usr/local/etc/bash_completion.d/dvc
$ dvc completion -s bash | sudo tee /etc/bash_completion.d/dvc
```

3. Finally, open a new terminal to activate completions.
Expand Down

0 comments on commit da38a2a

Please sign in to comment.