Giter Site home page Giter Site logo

Comments (2)

scop avatar scop commented on July 23, 2024

This is the first time I've heard of CLICOLOR_FORCE and I don't have a system to test it with, but from what I understand I think enabling it globally is asking for trouble, and the proper way to use it is selectively where needed. I'm inclined to close this with the workaround being "just don't do it".

Current bash-completion still has the have() function but it's not really necessary any more nor used by bash-completion, it exists only for backwards compatibility. It's likely that the above issue still exists with current versions though. In any case, I suggest upgrading bash-completion to an up to date version before reporting issues here, it's extremely unlikely that any work on earlier versions than the current 2.x line will be done.

from bash-completion.

akinomyoga avatar akinomyoga commented on July 23, 2024

I think this can also be closed. I agree that we shouldn't set the variable globally. That would break many shell scripts, and the issue is not specific to bash-completion.

I think a realistic usage for such a variable is to use it with an alias (alias ls='CLICOLOR_FORCE=1 ls'), a shell function (myls() { local -x CLICOLOR_FORCE=1; ls "$@"; }), or an executable script (#/usr/bin/env bash\nexport CLIPCOLOR_FORCE=1\nls "$@").

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.