todd-dsm / mac-ops

QnD Automation to build a MacBook Pro for DevOps
MIT License
11 stars 7 forks source link

fix docker completions #56

Open todd-dsm opened 2 years ago

todd-dsm commented 2 years ago
% brew link --overwrite --dry-run docker-completion
Would remove:
/usr/local/etc/bash_completion.d/docker -> /Applications/Docker.app/Contents/Resources/etc/docker.bash-completion
/usr/local/share/fish/vendor_completions.d/docker.fish -> /Applications/Docker.app/Contents/Resources/etc/docker.fish-completion
/usr/local/share/zsh/site-functions/_docker -> /Applications/Docker.app/Contents/Resources/etc/docker.zsh-completion
todd-dsm commented 2 years ago
Pouring docker-completion--20.10.11.all.bottle.tar.gz                       
Error: The `brew link` step did not complete successfully                       
The formula built, but is not symlinked into /usr/local                         
Could not symlink etc/bash_completion.d/docker                                  
Target /usr/local/etc/bash_completion.d/docker                                  
already exists. You may want to remove it:                                      
  rm '/usr/local/etc/bash_completion.d/docker'                                  

To force the link and overwrite all conflicting files:                          
  brew link --overwrite docker-completion                                       

To list all files that would be deleted:                                        
  brew link --overwrite --dry-run docker-completion                             

Possible conflicting files are:                                                 
/usr/local/etc/bash_completion.d/docker -> /Applications/Docker.app/Contents/Resources/etc/docker.bash-completion
/usr/local/share/fish/vendor_completions.d/docker.fish -> /Applications/Docker.app/Contents/Resources/etc/docker.fish-completion
/usr/local/share/zsh/site-functions/_docker -> /Applications/Docker.app/Contents/Resources/etc/docker.zsh-completion
==> Caveats                                                                     
zsh completions have been installed to:                                         
  /usr/local/share/zsh/site-functions                                           
==> Summary                                                                     
🍺  /usr/local/Cellar/docker-completion/20.10.11: 9 files, 335.9KB              
==> Running `brew cleanup docker-completion`...                                 
==> Pouring docker-clean--2.0.4.all.bottle.tar.gz                               
🍺  /usr/local/Cellar/docker-clean/2.0.4: 5 files, 32.3KB                       
==> Running `brew cleanup docker-clean`...                                      
==> Pouring docker-credential-helper--0.6.4.big_sur.bottle.tar.gz               
🍺  /usr/local/Cellar/docker-credential-helper/0.6.4: 6 files, 2.0MB            
==> Running `brew cleanup docker-credential-helper`...                          
==> Caveats                                                                     
==> docker-compose                                                              
Compose is now a Docker plugin. For Docker to find this plugin, symlink it:     
  mkdir -p ~/.docker/cli-plugins                                                
  ln -sfn /usr/local/opt/docker-compose/bin/docker-compose ~/.docker/cli-plugins/docker-compose
==> docker-completion                                                           
zsh completions have been installed to:                                         
  /usr/local/share/zsh/site-functions