GithubHelp home page GithubHelp logo

Comments (5)

MikeMcQuaid avatar MikeMcQuaid commented on June 23, 2024 1

@dbzix glad you got it resolved.

from brew.

MikeMcQuaid avatar MikeMcQuaid commented on June 23, 2024

Did you read/follow https://docs.brew.sh/Shell-Completion?

from brew.

dbzix avatar dbzix commented on June 23, 2024

@MikeMcQuaid Yes, and it didn't help.
I've also tried to install bash-completion, but received:

$ brew install bash-completion
==> Downloading https://ghcr.io/v2/homebrew/core/bash-completion/manifests/1.3_3
Already downloaded: /home/username/.cache/Homebrew/downloads/1ce2e9e615402b0a5be101ea0e04880736e2c985e09ed8f1d8d30ff4c287f07e--bash-completion-1.3_3.bottle_manifest.json
==> Fetching bash-completion
==> Downloading https://ghcr.io/v2/homebrew/core/bash-completion/blobs/sha256:c34ba8272f8e85e7f453c76e0fee07d8d35831e6b6365588a80ef240f9524e50
Already downloaded: /home/username/.cache/Homebrew/downloads/47556009459bddbe9164f34869ebd3e8dd8810870db74213e5de1850875a08f4--bash-completion--1.3_3.x86_64_linux.bottle.tar.gz
Error: Cannot install bash-completion because conflicting formulae are installed.
  util-linux: because both install `mount`, `rfkill`, and `rtcwake` completions

Please `brew unlink util-linux` before continuing.

Unlinking removes a formula's symlinks from /home/linuxbrew/.linuxbrew. You can
link the formula again after the install finishes. You can `--force` this
install, but the build may fail or cause obscure side effects in the
resulting software.

Installing bash-completion@2 didn't help, too.

UPD.: Also, the page you provided says:

Homebrew comes with completion definitions for the brew command.

I suppose it assumes that for brew command completions there is nothing that should be done additionally. Am I wrong here?

from brew.

MikeMcQuaid avatar MikeMcQuaid commented on June 23, 2024

@MikeMcQuaid Yes, and it didn't help.

What steps did you follow, what did they output, what else have you tried, what shell are you using, etc.

from brew.

dbzix avatar dbzix commented on June 23, 2024

Hey, @MikeMcQuaid!
I finally resolved the issue by running brew completions link and then adding the piece of script mentioned here to my .bashrc file.

The problem was obviously in blindly following the suggestion to add this script to either .bash_profile or .profile.
So, anyway, thanks for trying to help.

But I would like to make a little proposal here.
It would be nice and simple for users to have something like eval "$(brew init bash)" just as some other tools do. And you just put it right in your config file specific to the shell you use.

from brew.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.