Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Completion is extremely slow here



On Tue, 11 Dec 2012 10:13:37 +0100
Helmut Jarausch <jarausch@xxxxxxxxxxxxxxxxxxx> wrote:
> I'm using zsh for many many years now. But I'm lazy.
> I'm using the GIT version which I update nearly once a week.
> But I haven't updated my .zsh* files and my zsh-completion(s)
> are somewhat old (in GenToo versioning: zsh-completion-20091203-r1
> and zsh-completions-0.7.0)
> 
> Sometimes (only), in a freshly opened xterm, when I enter
> ./hg<Tab>
> 
> it takes up to 20 seconds to complete though there is only a single
> executable starting with 'hg' in that directory.
> And my PATH is not too complicated
> .:/home/jarausch/bin:/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.6.3:/usr/lib64/opencascade-6.5/ros/lin/bin:/usr/games/bin:/usr/brlcad/bin:/opt/ekopath/bin
> 
> The path /usr/games/bin doesn't exist and I don't know where it comes  
> from.
> I've checked  /etc/zsh/* /etc/profile and $HOME/.z*
> 
> What am I missing?

Try using ^X? as the completion command to get a trace of what's going
on.  To get timings, try

PS4="%* %N:%i:%_> "               

which is only to the nearest second but it should be good enough.

-- 
Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/



Messages sorted by: Reverse Date, Date, Thread, Author