Giter Club home page Giter Club logo

Comments (6)

mrzool avatar mrzool commented on August 14, 2024 1

Ok, you definitely got something there.

Homebrew installs bash-completion 1.3 by default for compatibility reasons—bash-completion 2.x requires Bash 4.x while OS X still ships with Bash 3.

I was able to install an up-to-date bash-completion with homebrew with these commands:

brew tap homebrew/versions
brew install bash-completion2

And by updating the path in my bashrc.

All this effectively fixed my delay issue with tmux.

Thanks a lot for the help!

from bash-completion.

scop avatar scop commented on August 14, 2024

This is the first time I've heard of tmux, so I don't have anything at the moment except to point you at the troubleshooting section of our README.md, see https://github.com/scop/bash-completion#troubleshooting

from bash-completion.

mrzool avatar mrzool commented on August 14, 2024

Sourcing bash-completion after setting set -x gave me a 3500+ lines of log.

This is the log I got while inside tmux, and this while outside.

Here the diff between the two.

from bash-completion.

scop avatar scop commented on August 14, 2024

So the only differences are with PATH? The latter has some duplicates so maybe there's some kind of recursive initialization going on. How do you load bash-completion from bashrc? If the delay is because of an initialization loop and you cannot get rid of it, loading it like this should prevent it being sourced multiple times in a single shell:

[[ $BASH_COMPLETION ]] || . /path/to/bash_completion

from bash-completion.

mrzool avatar mrzool commented on August 14, 2024

Looks that way... I load bash-completion as recommended by the caveats in the homebrew formula:

if [ -f $(brew --prefix)/etc/bash_completion ]; then
    . $(brew --prefix)/etc/bash_completion
fi

Sadly the change you suggested has no effect whatsoever.

from bash-completion.

scop avatar scop commented on August 14, 2024

Hm, /etc/bash_completion is not the location we install the main script these days. What version of bash-completion are you using?

from bash-completion.

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.