X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-6.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Message-ID: <4C4F1BDF.90000@redhat.com> Date: Tue, 27 Jul 2010 11:48:15 -0600 From: Eric Blake <eblake AT redhat DOT com> User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.7) Gecko/20100720 Fedora/3.1.1-1.fc13 Lightning/1.0b2pre Mnenhy/0.8.3 Thunderbird/3.1.1 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Cygwin command line takes a long time to start References: <20100722171413 DOT GA943 AT ns DOT sdsitehosting DOT net> <4C48803D DOT 906 AT cygwin DOT com> <20100722184328 DOT GA3431 AT ns DOT sdsitehosting DOT net> <4C48A0AE DOT 8060607 AT cygwin DOT com> <AANLkTimMoOsJxpOrcfpxiun8zAuDbhQ83_K_R_deD4lz AT mail DOT gmail DOT com> <AANLkTilosuPOUqyD22QXA7dMWqsDwyh3Qw6jLF8z3U6z AT mail DOT gmail DOT com> <AANLkTi=RZ7siJGD9_CXN+4Tx7Nfi7FiOCqQpz+hxtB=E AT mail DOT gmail DOT com> <AANLkTikWj4wJfagDQ=kAdq9qjaSYSUqL_asA1h-AfJe1 AT mail DOT gmail DOT com> In-Reply-To: <AANLkTikWj4wJfagDQ=kAdq9qjaSYSUqL_asA1h-AfJe1@mail.gmail.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enigCF4EF76D53B0E6363DF074C2" X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: <cygwin.cygwin.com> List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com> List-Archive: <http://sourceware.org/ml/cygwin/> List-Post: <mailto:cygwin AT cygwin DOT com> List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com --------------enigCF4EF76D53B0E6363DF074C2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 07/27/2010 11:42 AM, Andy Koppe wrote: > On 26 July 2010 00:26, David Antliff wrote: >> Thanks everyone - using these tips I was able to determine that >> bash_completion was actually running twice - once by >> /etc/profile.d/bash_completion.sh, and again by my own .bash_profile, >> which was modifying the path prior to invoking it so that apps in my >> ~/bin were picked up. I don't actually have anything useful in there >> any more so it's really just a bunch of old stuff I brought over from >> my Linux config. >> >> I've tidied it up now. I now get the bash prompt after about 5 >> seconds, rather than 10. Disabling bash_completion completely gives me >> a prompt in less than 1 second, but I do quite like bash_completion so >> I'll live with that. >=20 > FWIW, zsh with fancy completion enabled starts in one to two seconds > for me. Not suggesting that switching shell is an easy fix though. Furthermore, upstream bash-completion developers are working on speeding things up, by doing lazy loading (rather than loading all program-specific completion handlers into memory at startup, they trivially assign a global loader completion handler to all programs, which then reassigns and runs the real loader for a given program the first time you do tab-completion on that program); but it may require support from bash 4.1 (I really need to find more time to get my bash 4.1 port to cygwin completed and posted). --=20 Eric Blake eblake AT redhat DOT com +1-801-349-2682 Libvirt virtualization library http://libvirt.org --------------enigCF4EF76D53B0E6363DF074C2 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/ iQEcBAEBCAAGBQJMTxvkAAoJEKeha0olJ0NqFkUH/Rka+CnY99pbh57T1JvY2/jr bnb71qE9FEkmgFu3L3ZwxHqKXTqMRBkbYsJ8xvFPXU2hgYbuav3vCBpDPnb9inQ5 qwxYKS/PpAqT6kuXCYQLAjYeAM309rkKRgn9boRogL6u2Wgqgv7tGSm6cEdsMwlx h6fGVRUraYZzVUTyuqos1Z05dOSvUhA/RjMfjfdiUJ7BhvxHarigcTTKLOfP3GrN JnHXw+iDMQbx+X03peJBPOkjlaTaTVzSBpbmzrCI6UjdsKir59UQYQU8WobrPoks OmkN/jSR5gPk28wdBF8AK0dkIzyWuYEuN0uF91tuljuSbzyG9c5YV6J/rSoMoC8= =T5Pf -----END PGP SIGNATURE----- --------------enigCF4EF76D53B0E6363DF074C2--