From 0de27c2d05ee18cf7bee43a07b62dfceab974945 Mon Sep 17 00:00:00 2001 From: macknight Date: Sat, 31 Mar 2018 04:57:06 +0800 Subject: [PATCH] __docker_machine_ps1 is not found (#6337) Fix __docker_machine_ps1: command not found --- machine/install-machine.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/machine/install-machine.md b/machine/install-machine.md index e4d7056e0e..0fcf8f17b6 100644 --- a/machine/install-machine.md +++ b/machine/install-machine.md @@ -70,6 +70,8 @@ Confirm the version and save scripts to `/etc/bash_completion.d` or ```bash scripts=( docker-machine-prompt.bash docker-machine-wrapper.bash docker-machine.bash ); for i in "${scripts[@]}"; do sudo wget https://raw.githubusercontent.com/docker/machine/v{{site.machine_version}}/contrib/completion/bash/${i} -P /etc/bash_completion.d; done + +Then you need to run "source /etc/bash_completion.d/docker-machine-prompt.bash" in your bash terminal to tell your setup where it can find the file docker-machine-prompt.bash that you previously downloaded. ``` To enable the `docker-machine` shell