Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: "Main menu" issue on initial run on zsh
- X-seq: zsh-users 21068
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: "Main menu" issue on initial run on zsh
- Date: Mon, 7 Dec 2015 17:50:52 -0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version:content-type; bh=zGl5zyOPIT70M2C8+CDbHuboM8p+LdDQDuldjXZb/IA=; b=VRmlObW+1e1KfxAQjEvy89/vwQoXbVmqpMk2WgWNes956REtrDhFggW6OZ2iaq2A8h 81R8oNYYgkX79HGNVS8VJeNEgARClpwoImv2NfraznC4XY07lg9jZusS3wtOuSbTbZTj /fbyInA5QzG406/ny021OY7OLOmBGVH/oSJ5QIfRZ5yKpPhZs2oRVO8yp9iUgjKO0E++ bP8ucmIOB+/w4c4euf0O6sXLzxbINLkVpzPhCdquRL6zA6a6a+TSvikSota6XtKcyzUb czGQfRxKHlkHhTtRdbxMu+RG8ESJdKwDeYD6zhQEqeXtOAL31wCDLLu4uFfFrJmNadNX I+nQ==
- In-reply-to: <CAK3Ng1LuAJLFYP6G3KBAienpDtn1Yy2LYzu4p0v_UHj7805m2w@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAK3Ng1LuAJLFYP6G3KBAienpDtn1Yy2LYzu4p0v_UHj7805m2w@mail.gmail.com>
On Dec 7, 5:28pm, Zachary Hill wrote:
}
} Sorry if the wording is a bit weird, wasn't sure how to explain the issue.
} If you just set the EDITOR environment variable to vim/vi and try to use
} the "main menu" to configure some the history settings, you should see what
} I mean.
You seem to be talking about the zsh-newuser-install function.
To be really thorough, this should define its own keymap, but for now:
diff --git a/Functions/Newuser/zsh-newuser-install b/Functions/Newuser/zsh-newuser-install
index 37c6029..e4028fd 100644
--- a/Functions/Newuser/zsh-newuser-install
+++ b/Functions/Newuser/zsh-newuser-install
@@ -512,7 +512,7 @@ $default_options[$match[2]])
fi
print -r "Edit a value. If it is left blank, nothing will be saved:"
edval=$match[2]
- if vared -p "$match[1]> " -h edval; then
+ if vared -M emacs -p "$match[1]> " -h edval; then
# check this assignment doesn't produce multiple words
# e.g. "HISTFILE=never rm -f ~" does produce multiple words...
# this isn't perfect, e.g. "(this would get split on assignment)",
Messages sorted by:
Reverse Date,
Date,
Thread,
Author