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

compinit and promptinit fail on virtual terminal



Hi,

whenever I start zsh in gnome-terminal or xterm, I get this error:


 /home/igel/.zshrc:2: compinit: function definition file not found
 /home/igel/.zshrc:3: promptinit: function definition file not found
 /home/igel/.zshrc:3: command not found: prompt


The funny thing is, that when starting zsh on a TTY, (or via 'su' in a
'screen' on a virtual terminal) it works just fine. A simple .zshrc to
reproduce the problem looks like this:


 autoload -U compinit promptinit
 compinit
 promptinit; prompt gentoo


I have no clue about the origin of the error, there have been no updates
 of zsh itself, zsh-completion or the terminals. I never modified
/etc/zsh/zprofile. The error just started happening after a reboot.
Rebuilding zsh didn't help.

I'm running gentoo (which means I compiled zsh locally, I don't know if
that's important):

 > uname -a
 Linux Garten 2.6.31-gentoo #1 SMP Sun Sep 13 09:53:16 CEST 2009 x86_64
 Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz GenuineIntel GNU/Linux

 > zsh --version
 zsh 4.3.10 (x86_64-pc-linux-gnu)

I already tried to get advice in the gentoo forum in [1], but no
solution could be found so far.

Please help me :)
//Stephan

[1] http://forums.gentoo.org/viewtopic-t-791759.html

-- 

Früher hieß es ja: Ich denke, also bin ich.
Heute weiß man: Es geht auch so.

 - Dieter Nuhr



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