Zsh Mailing List Archive
Messages sorted by:
Re: environment settings
- X-seq: zsh-users 12952
- From: Phil Pennock <zsh-workers+phil.pennock@xxxxxxxxxxxx>
- To: Marcus Franke <marcus.franke@xxxxxxx>
- Subject: Re: environment settings
- Date: Mon, 16 Jun 2008 01:06:25 -0700
- Cc: zsh-users@xxxxxxxxxx
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=d200803; d=spodhuis.org; h=Received:Date:From:To:Cc:Subject:Message-ID:Mail-Followup-To:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; b=c1oO9U3J3vuqe/UjPrLPO/AKMiAc8bGQc8NJna8NvPePXLo1EXIZ4LrlHVkIV9Otgm4hTuO/nLMwFQqTic1XC7RqHQQiL0J0FGpx2KmsH7mPbNFmVdTpgEqRpUe+P3TDI6W16NBdHrZjrwRi7TfvALnAmB8z0BXCHeIfhgwQGno=;
- In-reply-to: <20080616074651.GB26165@marcus>
- Mail-followup-to: Marcus Franke <marcus.franke@xxxxxxx>, zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20080616074651.GB26165@marcus>
On 2008-06-16 at 09:46 +0200, Marcus Franke wrote:
> Ive got a strange problem with my zsh.
> I installed wyrd (calender application) and had problems with wyrd not
> recognizing my EDITOR settings. Strangely looking into "set" and "env"
> it was present in just one and not both.
Presumably it was in 'set', the variables known to zsh, and not 'env',
an external command which checks which variables are in the environment
(a list of strings exported to child processes).
It should be sufficient to just "export EDITOR".
> Now I defined EDITOR in my .zshenv and things are getting even worse :)
> I use to press a lot of ctrl+a or ctrl+e to jump to start or end of my
> shell prompt, stopped working. ctrl+r for incremental search stopped
> working, too.
You're using vi or some derivative and zsh has seen this and
automatically switched key-bindings to vi keybindings. You want
"bindkey -e" to force Emacs key-bindings, despite using vi as a
Further, you want to set both EDITOR and "bindkey -e" in ~/.zshrc, *not*
in ~/.zshenv; note that .zshenv is for _all_ shells, including
non-interactive cron-jobs, etc. .zshrc is for interactive shells. You
(hopefully) only care about editors and ZLE input modes in interactive
Messages sorted by: