text sh:__ docker_machine_ps1:找不到命令

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text sh:__ docker_machine_ps1:找不到命令相关的知识,希望对你有一定的参考价值。

source: https://github.com/docker/machine/issues/2529

I'm using macOS Sierra v10.12.6.

I added Bash Completion with the following steps thanks for @rubyconvict:

Install Bash Completion scripts. Replace version in URLs below with latest Docker Machine version https://github.com/docker/machine/releases.
Note: If Bash Completion already installed with Homebrew (check with brew list bash-completion) then use /etc/bash_completion.d/ instead of /usr/local/etc/bash_completion.d/ below:

brew install wget
sudo su
cd /usr/local/etc/bash_completion.d/
wget https://raw.githubusercontent.com/docker/machine/v0.12.2/contrib/completion/bash/docker-machine-prompt.bash
wget https://raw.githubusercontent.com/docker/machine/v0.12.2/contrib/completion/bash/docker-machine-wrapper.bash
wget https://raw.githubusercontent.com/docker/machine/v0.12.2/contrib/completion/bash/docker-machine.bash
exit

Append to ~/.bashrc.
echo 'source /usr/local/etc/bash_completion.d/docker-machine-prompt.bash' >> ~/.bashrc;
echo 'source /usr/local/etc/bash_completion.d/docker-machine-wrapper.bash' >> ~/.bashrc;
echo 'source /usr/local/etc/bash_completion.d/docker-machine.bash' >> ~/.bashrc;
echo 'PS1="[\u@\h \W$(__docker_machine_ps1)]\$ "' >> ~/.bashrc;
source ~/.bashrc;
cat ~/.bashrc;

以上是关于text sh:__ docker_machine_ps1:找不到命令的主要内容,如果未能解决你的问题,请参考以下文章

进展_酒吧.sh

ciscn_2019_ne_5

Python基础代码目录

sh install__docker.sh

sh install__webmin.sh

sh ssh__permission.sh