You are not logged in.

#1 2010-12-21 23:18:20

andre.ramaciotti
Member
From: Brazil
Registered: 2007-04-06
Posts: 649

[solved] zsh, compinit and colors

Hi all,

I've just updated my zsh package to version 4.3.11-1 and now I can't run two of its built-in functions, namely compinit and colors.

My .zshrc contains the following code:

# rest of ~/.zshrc ...
zstyle :compinstall filename '/home/andre/.local/.zshrc'
autoload -U compinit
compinit
zstyle ':completion:*' completer _complete _match _approximate
zstyle ':completion:*:match:*' original only
zstyle ':completion:*:approximate:*' max-errors 1 numeric
zstyle ':completion:*' menu select=5
zstyle ':completion:*' squeeze-slashes true
zstyle ':completion:*:*:kill:*' menu yes select
zstyle ':completion:*:kill:*' force-list always
zstyle ':completion:*:cd:*' ignore-parents parent pwd

# colors array (e.g. $fg[blue])
autoload colors
colors
# rest of ~/.zshrc ...

But when I open up a terminal (or type any of these two functions) I get the messages:

/home/ars/.zshrc:57: compinit: function definition file not found
/home/ars/.zshrc:69: colors: function definition file not found

I guess this isn't something very complex, but I couldn't find anything about it.

TIA.

Last edited by andre.ramaciotti (2010-12-22 00:15:09)


(lambda ())

Offline

#2 2010-12-22 00:03:07

Knute
Member
From: Minot, ND
Registered: 2009-03-17
Posts: 604

Re: [solved] zsh, compinit and colors

So what do lines 57 and 69 of your .zshrc file say specificially?

It's hard to tell what the line numbers are from what you posted, so.....

Also are those functions actually in your /usr/share/zsh/<version number>/functions directory?
colors appears to be in Misc and compinit appears to be in Completion in mine (version 4.3.10).


Knute

Offline

#3 2010-12-22 00:14:55

andre.ramaciotti
Member
From: Brazil
Registered: 2007-04-06
Posts: 649

Re: [solved] zsh, compinit and colors

Sorry tongue  Line 57 is "compinit" and line 69 is "colors".

It was quite silly, actually.  zsh was still trying to load its functions from /usr/share/zsh/4.3.10 instead of /usr/share/zsh/4.3.11.  I logged out and things started to work again.

Thanks.


(lambda ())

Offline

Board footer

Powered by FluxBB