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

Re: ~/.zshenv or ~/.zprofile



On Mon, Sep 08, 2003 at 09:47:29AM +0000, Phil Pennock wrote:
> Similarly, I want to be able to do:
> % ssh some-host command-in-company-bin-dir -oPts |less
> and not have to worry about paths.

Another solution for that is to use ~/.ssh/environment (as long as the
"PermitUserEnvironment yes" option is set in the sshd_config file).  It
also has the benefit of working regardless of what login shell you might
have on a particular machine.

In any case, I consider this "knowing what you're doing", since it is
necessary to protect the setting of such variables via something like
the checking of $SHLVL.

..wayne..



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