Saturday, 8 December 2007

In which startup file do I put...?

This FAQ entry for zsh is probably the most helpful I’ve read in 2 years since switching to said shell.

I use ssh-add a lot, and occasionally, I might need to jump, securely, back to my local system via sftp or scp to get a file, I would get some error about “message too long” or some such thing and the process would die.

The error was because as I remoted back to my system ssh-add was executing in my .zshenv. By moving the agent code to .zprofile the agent still runs locally, just not as I jump back for some of the other remote tools that don’t swallow the output and bomb.

Posted by caffeinated at 10:43 AM in nerdery


[Trackback URL for this entry]

Your comment:

(not displayed)

Live Comment Preview:

« December »