From da38a2ab615bea161b40f87cbf6c6292229cdc33 Mon Sep 17 00:00:00 2001 From: Casper da Costa-Luis Date: Mon, 22 Jun 2020 23:14:02 +0100 Subject: [PATCH] install: completion: fix/improve paths (#1478) * completion: ubuntu/debian: fix installation instructions * path quote safety * potential Mac fix --- content/docs/install/completion.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/content/docs/install/completion.md b/content/docs/install/completion.md index a10fe0f167..34f5049b3e 100644 --- a/content/docs/install/completion.md +++ b/content/docs/install/completion.md @@ -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. @@ -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.