Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Large LS_COLORS makes auto_cd very slow
- X-seq: zsh-users 16980
- From: Jesper Nygårds <jesper.nygards@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Large LS_COLORS makes auto_cd very slow
- Date: Tue, 3 Apr 2012 21:08:27 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=3GsLzZq0QDcJ7Y+wBVG4irMWaBMxT1LZLy3OdUCK+XE=; b=JbWSE20hIOd7QPqnBjwQ3i5bIzXNbJ4r49xNTV2QAPaRuFsMLbn091jw2s3FUtudFp nWAq+hBiycgAEpZhzwUAu53FbW45KSCJLSbNuJWKqpzTl8qApVz2UMnCeQP5BoNm1IPV FdiPebkgYaGQXU2p47DnXiexYPoz9/maF1mcgQTFLsNYMdWRiw2EMCtdb6L72V2Ekxs+ x5q7fGN+77+uTwLvx5JA/b/RILMmGOYFQDx9efj/EzMDABhu5bhkVQLuOGUMG2lbZNWA L9y0NXfVLnbU/kSib13YO4rqOq+mO0SMfBfClcTNyDT2cN3OmGGJmwpJHNbxUSYnwToo PgUQ==
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
I am using zsh 4.3.17.
This series of initialization (with the attached, admittedly rather
big DIRCOLORS.256), makes auto_cd very slow.
zsh -f
setopt AUTO_CD
eval $(dircolors -b ~/DIRCOLORS.256)
autoload -U compinit; compinit
zstyle ':completion:*' list-colors ${${(s.:.)LS_COLORS}/\*/\=\*}
zstyle ':completion:*' group-name ''
What I am trying to achieve with the substitution in the list-colors
style is to make the explicit coloring of files with file endings take
precedent over, say, executables.
With the above lines loaded, the following completion takes over a
full second on my Linux system:
/us<tab>
whereas completion after an explicit cd is nearly instantaneous:
cd /us<tab>
It seems rather odd to me that coloring would render this so slow. I
suppose the delay is caused by zsh trying to color some list of
possible completions, but why would it be so very slow?
Attachment:
DIRCOLORS.256
Description: Binary data
Messages sorted by:
Reverse Date,
Date,
Thread,
Author