From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-users@zsh.org
Subject: Re: "Main menu" issue on initial run on zsh
Date: Mon, 7 Dec 2015 17:50:52 -0800 [thread overview]
Message-ID: <151207175052.ZM7199@torch.brasslantern.com> (raw)
In-Reply-To: <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)",
prev parent reply other threads:[~2015-12-08 1:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-07 23:28 Zachary Hill
2015-12-08 1:50 ` Bart Schaefer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=151207175052.ZM7199@torch.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).