From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10794 invoked from network); 12 Jan 2000 19:20:13 -0000 Received: from ns2.primenet.com.au (HELO primenet.com.au) (?m/8J6PjV3u9/YgP9YcHYy09Q+YSiMhdt?@203.24.36.3) by ns1.primenet.com.au with SMTP; 12 Jan 2000 19:20:13 -0000 Received: (qmail 29803 invoked from network); 12 Jan 2000 19:20:09 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns2.primenet.com.au with SMTP; 12 Jan 2000 19:20:09 -0000 Received: (qmail 25874 invoked by alias); 12 Jan 2000 19:18:26 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 2870 Received: (qmail 25866 invoked from network); 12 Jan 2000 19:18:26 -0000 To: zsh-users@sunsite.auc.dk Subject: Re: remote function problems. In-reply-to: "Scott Lipcon"'s message of "Wed, 12 Jan 2000 13:52:09 EST." Date: Wed, 12 Jan 2000 19:20:33 +0000 From: Peter Stephenson Message-Id: Scott Lipcon wrote: > $ ssh hostname zsh -c function > slipcon's password: > zsh: command not found: function > $ > > this is because I load my functions in my .zshrc - they're all in a file > called zfunc, and I say: > > > # load functions (necessary for completions) > [[ -r $HOME/.zsh/zfunc ]] && source $HOME/.zsh/zfunc > > in my zshrc. (which is directly before I load in my completions, which > are in $HOME/.zsh/zcomp) You should move the code (and anything it depends on) to ~/.zshenv and everything will work without the -i. -- Peter Stephenson