Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: environment settings
- X-seq: zsh-users 12953
- From: Marcus Franke <marcus.franke@xxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: environment settings
- Date: Mon, 16 Jun 2008 14:30:46 +0200
- In-reply-to: <20080616080556.GA5091@xxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20080616074651.GB26165@marcus> <20080616080556.GA5091@xxxxxxxxxxxxxxx>
- Reply-to: zsh-users@xxxxxxxxxx
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