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

Re: compinit and promptinit fail on virtual terminal



On Monday 14 of September 2009 23:27:45 Stephan Friedrichs wrote:
> 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.

Simple 'su' or 'su -'?

Those virtual terminals are not usually started as login shell; so it is 
quite possible completions functions are added to fpath in one of login 
script (/etc/zprofile, /etc/zlogin, ~/.zprofie, ~/.zlogin) that are not 
executed when you start xterm. Check all of them.

Attachment: signature.asc
Description: This is a digitally signed message part.



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