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

Re: environment settings



On Mon, Jun 16, 2008 at 09:05:56AM +0100, Stephane Chazelas wrote:
> On Mon, Jun 16, 2008 at 09:46:52AM +0200, Marcus Franke wrote:
> [...]
> > Looks like defining EDITOR in my otherwise empty .zshenv file was great
> > for wyrd to recognize the editor setting but not for my shell
> > environment.
> [...]
> 
> When you set EDITOR to vi, zsh assumes you want a vi-like
> command-line editing mode.
> 
> Add bindkey -e
> 
> to you ~/.zshrc if you want emacs mode.

GREAT!!

This one made my day! :)

I thought I had that option defined, but I was wrong on that.

> environment variables can be defined in the ~/.zprofile. Then
> they are set once, when you log in and inherited by every
> process. But make sure whatever process logs ou in if it's not
> your login shell, does read that .zprofile. You might have to do
> it in .profile and have .zprofile source that .profile.

My .zshrc just had the "EDITOR=/usr/bin/vim" line but without using
export :(


regards,
Marcus



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