From 5eff1fad1c7ac99dc29437e077ef9c57927b0d1a Mon Sep 17 00:00:00 2001 From: helpfulchicken <64881516+helpfulchicken@users.noreply.github.com> Date: Thu, 23 Jul 2020 15:49:34 +1200 Subject: [PATCH 1/2] Update cli-reqs.md In short: existing instructions for adding bash completion for mbed-cli didn't quite work. I found that in a fresh install of Linux Mint 20 Cinnamon, I did not have a folder `~/.bash_completion.d`, and after adding one as per the Bash completion instructions in the mbed-os docs (and copying over the `mbed` script), the terminal still did not have bash completion for the mbed command. I found that I needed to add an instruction somewhere to make the terminal actually source that `mbed` script, since there was not anything in place that was looking in `~/.bash_completion.d`. The actual method I used was adding: ` for file in ~/.bash_completion.d/* ; do source "$file" done ` to my `~/.bashrc` file. --- docs/tools/CLI/cli-setup/cli-reqs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tools/CLI/cli-setup/cli-reqs.md b/docs/tools/CLI/cli-setup/cli-reqs.md index 745a7272ef..d37a012466 100644 --- a/docs/tools/CLI/cli-setup/cli-reqs.md +++ b/docs/tools/CLI/cli-setup/cli-reqs.md @@ -104,7 +104,7 @@ To install `mbed-cli` bash completion: 1. Clone the Mbed CLI repository: `git clone https://github.com/ARMmbed/mbed-cli`. 1. Navigate to the `mbed-cli/tools/bash_completion` directory. -1. Copy the `mbed` script into the `~/.bash_completion.d` directory (you may need to create this directory first). +1. Copy the `mbed` script into the `~/.bash_completion.d` directory (you may need to create this directory first, and if that is the case then you may also need to add a line like `source ~/.bash_completion.d/mbed` to `~/.bashrc`). 1. Restart the terminal. ## Configuration options From 6567e580367d0b07ccc1f60f95e1ed803c7f83f4 Mon Sep 17 00:00:00 2001 From: Irit Arkin Date: Wed, 5 Aug 2020 12:03:21 +0100 Subject: [PATCH 2/2] Update docs/tools/CLI/cli-setup/cli-reqs.md --- docs/tools/CLI/cli-setup/cli-reqs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tools/CLI/cli-setup/cli-reqs.md b/docs/tools/CLI/cli-setup/cli-reqs.md index d37a012466..a998bf1caf 100644 --- a/docs/tools/CLI/cli-setup/cli-reqs.md +++ b/docs/tools/CLI/cli-setup/cli-reqs.md @@ -104,7 +104,7 @@ To install `mbed-cli` bash completion: 1. Clone the Mbed CLI repository: `git clone https://github.com/ARMmbed/mbed-cli`. 1. Navigate to the `mbed-cli/tools/bash_completion` directory. -1. Copy the `mbed` script into the `~/.bash_completion.d` directory (you may need to create this directory first, and if that is the case then you may also need to add a line like `source ~/.bash_completion.d/mbed` to `~/.bashrc`). +1. Copy the `mbed` script into the `~/.bash_completion.d` directory (you may need to create this directory first, and then you may also need to add a line, for example `source ~/.bash_completion.d/mbed` to `~/.bashrc`). 1. Restart the terminal. ## Configuration options