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

Re: remote function problems.



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 <pws@xxxxxxxxxxxxxxxxxxxxxxxx>



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