Coder Social home page Coder Social logo

Comments (15)

 avatar commented on May 21, 2024

Unfortunately it's not possible to make it any faster since bash_it needs to get a list of gems each time it loads the completion.

On Jul 24, 2011, at 11:48 AM, victorcoder wrote:

Gem completion script makes each new terminal window take ages to load. Just deleting the symlink from enabled completions folder makes it load reasonable well.

Reply to this email directly or view it on GitHub:
#73

from bash-it.

vcastellm avatar vcastellm commented on May 21, 2024

Yes and I think it's preferably to not enable it by default because it can create a bad impression for new users.

from bash-it.

 avatar commented on May 21, 2024

I can't stop from enabling it by default. We automatically enable all completion plugins by default.

from bash-it.

tswicegood avatar tswicegood commented on May 21, 2024

It might be worthwhile to add an exemption and/or allow the users to decide which ones they want to enable on tha first pass thru.

from bash-it.

 avatar commented on May 21, 2024

I might add something to the install script. Anyone else think this is a good idea? I was planning on adding something like this:

tell the user:

bash_it comes with tab-completion for the gem command. Using this requires it to download a list of gems which will make shell startup time slower. Would you like to enable this completion plugin? (Y/N)

from bash-it.

tswicegood avatar tswicegood commented on May 21, 2024

I think it could be even simpler (from the user's perspective, not ours):

Would you like to enable all, some, or none of the [plugins|completion|aliases] (this may make bash_it run slower):
[All/Some/None]:

All continues to act as it currently does, Some prompts the user for each one, None skips the step all together.

from bash-it.

vcastellm avatar vcastellm commented on May 21, 2024

Could be possible to make it like in omz? load just the list of commands and load gems list on demand

from bash-it.

 avatar commented on May 21, 2024

@tswicegood's idea looks like a good one. I'll try implementing it.

from bash-it.

 avatar commented on May 21, 2024

Fixed with 021000c.

from bash-it.

vcastellm avatar vcastellm commented on May 21, 2024

It's an old commit, push pending?

from bash-it.

 avatar commented on May 21, 2024

Oh, sorry. Typo. Was fixed in 3eff6b2.

from bash-it.

vcastellm avatar vcastellm commented on May 21, 2024

Oh, I think you were going to fix the gem completion file.

Selecting "some" drives through an endless process that I thinks it's not that great idea.

I'll try to help with this.

from bash-it.

tswicegood avatar tswicegood commented on May 21, 2024

@mr-szymanski I was thinking more along the lines of moving the for loop into the while true loop so you would be asked for each type so you could enable all plugins, some aliases, and none of the completion, or so on.

from bash-it.

 avatar commented on May 21, 2024

Ahh, ok. I'll try that, then. Thanks.

from bash-it.

 avatar commented on May 21, 2024

Fixed with 159e1e4.

from bash-it.

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.