This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Cygwin command line takes a long time to start


> From: Andy Koppe
> On 23 July 2010 02:53, David Antliff wrote:
> >> OK then the easiest thing to do is add "set -x" to your
> ~/.bash_profile
> >> and watch where the delay happens as the statements scroll by.
> >
> > Ah, that's useful - I also have a 10-second-or-so delay when mintty
> > starts. By using a bunch of 'echo' commands and that set -x (which of
> > course extends the time, but at least makes it clear if anything is
> > 'hanging') it's clear to me that the majority of the delay (about 6
> > seconds) happens before .bash_profile executes.
> 
> Try the same with /etc/profile as well, after first backing it up.
> Scripts in /etc/profile.d might be involved too.
> 
> Andy

Another idea is to start bash with --noprofile to eliminate all profile
processing. 
http://www.gnu.org/software/bash/manual/bashref.html#Invoking-Bash
--Ken Nellis

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]