From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 286 invoked by alias); 8 Dec 2015 01:50:49 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 21068 Received: (qmail 15124 invoked from network); 8 Dec 2015 01:50:47 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 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== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version:content-type; bh=zGl5zyOPIT70M2C8+CDbHuboM8p+LdDQDuldjXZb/IA=; b=BCvhGwq4Ls9HAMy1CyYuv8H0w9k+oRFLdcPt3m0j9L5ro+EnR1880pMzPekO4TYPbO SeayBqPgaOc3HjXxZpn7/Inh+r4o5CFYGjGCs6ggag0Y1UmuvGVyqoKoNAbYQxfpy2FP LQQK5Zo+EeykVNcpLgUn7kT1QUuf/KPtaMyLPMYfn8h6fAX1BHYxbh1jMM/U+Wzr6jWk Y90JhDY5QufJxg9Bp+VRiHw0VXGp0wYAom6z6zvwk1m3DwMB1zf76qYB9dR0ZA76oJsC xM2Cy1daQIqUxoGE1V6xx+k9hZTu9Yr/DjZBbZoQ3FNyNeHpZ4w9fMXEGavKy7/ZlG9R RrZg== X-Gm-Message-State: ALoCoQkF0mlnwk4Q1euxdaDsb/ITxsaJ2i0zdlNFQ1P8GTfyp0ESPynmbJo/95CbWjJDuPYepbzbYk/DL8M4fasf/p8l9ubHtA== X-Received: by 10.67.24.104 with SMTP id ih8mr1286515pad.124.1449539444043; Mon, 07 Dec 2015 17:50:44 -0800 (PST) From: Bart Schaefer Message-Id: <151207175052.ZM7199@torch.brasslantern.com> Date: Mon, 7 Dec 2015 17:50:52 -0800 In-Reply-To: Comments: In reply to Zachary Hill ""Main menu" issue on initial run on zsh" (Dec 7, 5:28pm) References: X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-users@zsh.org Subject: Re: "Main menu" issue on initial run on zsh MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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)",