From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 7211 invoked from network); 31 Aug 2022 03:21:04 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 31 Aug 2022 03:21:04 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1661916064; b=m5PF2KB7g7JSVbTeWAgGvImY9hsQaw++PKduAr/l0ZL6BavRAikRq9arGniqdVtkscouEqQpo0 Gas2wJTR7TJ4WZgeRwYRUpFQmOO07Jpgh5X6cgEaXAD6zIAOb83lBVsoEqi9WDRrELHRpkuyB5 otzMIwIN0vy6fRGI2xcpN6/avygN9D4ZDCZc2bet93uVph3CnmHGMkKObiVAXzMG5arATBhi6K Drn+PYPxa46dxdNvI7X/lWp1UJm9D6qOCIwR7QSZ4jii7ufPP+nwbTIO6e9d7pHJb9zxAuA+iK gwkjo8eq8VujgsvRiX4V+YGAwUKm1CneBYh1212VZk5LjA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-oa1-f48.google.com) smtp.remote-ip=209.85.160.48; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1661916064; bh=xHa4JskHfu8NjQ2mkfrXWcvj4gAm6N9rfdBfPQYQhCo=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:Cc:To:From:DKIM-Signature: DKIM-Signature; b=ciUI43TldowclwFat+74fze8hxDlKQ55xr1c9ZbOT9hD2k4jkaTVvmYWcKVUxqQNCtQ4L8JNZ5 sForMWfn8mrJvmB3bCxF0FfQq9u/kfMT87RGV6xs1Rm1BTpv3PIuPTKfdDFN6x4KMc3SSSVxkM AyVOV8N4lD58VNGtHs5/wZy2npUDgvUY5+t1U7eZxwIEEfG/FipYm5gMysraFHMHYqLmRjQb4r CF/EFOF6Zgzmhdoe8q0yeH8sOaTI0+LH52xGqEn2qSk22XuEDJ+3PIDJLtydLMlC8A6kOh4Ota h3Iso419ZkPTwflGjmvJTMZBV3ze6te2pg7FF/ArWCy21A==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=4MEIGUM7iPnvCU2Cyu+jZNRiG0d6ORD4vTfK2qZL44I=; b=RDO9l1UP6zGMcYFDb8kG8VZ4qt 6Gn/AcwbcFSVRfu3d5s4VZOUQnRSW+BNuMcsGyYw2Si1n6Bd2ISi9gw39FXcVvKhR5NDyDeIYDWTn IFq9ObR5jn+YFjlR6XgrFZtYBXjfQCcN8f6TFkYkFhgqCSLPgopZ3/7u8fMEUOLIjwLChhNVzVRQ4 2pZhGRpDyaObbrNvgnfjsw9Un7t08wrcO4kY7XRQbV/1rcwM4RLFaG7P4IOXDFqUa/rh3cgrnvQxN vmWQpSjMH2BDl8ws+6jmrD4iA07BTevP7g1vJppuO5jdLYHQSBTOox3cvfS3WIA5/LM913RaiCghI B3Yh9F3A==; Received: from authenticated user by zero.zsh.org with local id 1oTEHo-00055H-K5; Wed, 31 Aug 2022 03:21:04 +0000 Authentication-Results: zsh.org; iprev=pass (mail-oa1-f48.google.com) smtp.remote-ip=209.85.160.48; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-oa1-f48.google.com ([209.85.160.48]:43613) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1oTEFo-0003bx-Ik; Wed, 31 Aug 2022 03:19:01 +0000 Received: by mail-oa1-f48.google.com with SMTP id 586e51a60fabf-11eb44f520dso17131727fac.10 for ; Tue, 30 Aug 2022 20:19:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=4MEIGUM7iPnvCU2Cyu+jZNRiG0d6ORD4vTfK2qZL44I=; b=mM1jcCsFxAQm91Svj7AygIZxwHwyAqGGSaRAblZe3FIQUFIqstAWUN4+cBTFX7pjbH bepMrPOx7hp5s3hMrpTIn5wfdWHXMO8hge/DfJLB8L4M9TIOyy5O89rARV6aBQO7PLFm 7h4zhh713CDFDnqH7Y2i/BFiF3o4wPGLi9ghvFURz0koTWwQGlX2w8iRlSnlbb/3sb/K 8GJb0ePmOdEbRuhVTuxcc/2RX68jjI7uXMxWIYO/53Rzfrw/d5m0Z25Cv7gOgWGECDK5 zDTTOnoxJ1xs/fttQiXRJJ/74g4y3XUOFMsql/Y4Gx4GHpDvlfNzSN1jLnXnaPY1CDfy fx9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=4MEIGUM7iPnvCU2Cyu+jZNRiG0d6ORD4vTfK2qZL44I=; b=TtxSaZOuyw5MyAQ95JKIq+btYYoWWBFvco8wW/N0J3ydDfK+F5hOiSMq2eiBMry2/8 qbHGGfKvMVhObd2lMuthTiKFlKspFb+T4uIEK+4Yn8dVWzgTCNiRl+SKM8S15cvu2gqs KD+G9UFOWzEo7JO985nCdI3DTYbSnDxnNWBMuWo1GBgd8+CTwJBpEgeHRfWCdWLKe3X1 kJUXaD69r8abHRuUYMI717JUx8zWnYZ2MT1xmGf+E9L8gizBrDatxF+mf1i1ryVXD/Mr RYEQpRVP30BCtA4izJoBy/zj6mE5CXw7Yz4voGqIjfV1ZmP3foqIHJk5YscQS5XyvxK2 nk5g== X-Gm-Message-State: ACgBeo1UxszHmGWjCMbwRGftzBd4Gzd2Wawjz7vdpl4gAKeRSUhbS6ao 86umTbvBHNEzNVIOC7EpIK6ZUqeJ7ts= X-Google-Smtp-Source: AA6agR456PuLKAftQMOvO5t3NXKGTKBWjFLAXL3s0th0hTophK1im9v4ioJ1A4hidV8kMU/5nwAT2A== X-Received: by 2002:a05:6808:1156:b0:344:fd6a:f7f8 with SMTP id u22-20020a056808115600b00344fd6af7f8mr392999oiu.291.1661915939353; Tue, 30 Aug 2022 20:18:59 -0700 (PDT) Received: from localhost ([2806:2f0:4000:eec:4ae7:daff:fe31:3285]) by smtp.gmail.com with ESMTPSA id l16-20020a4ad9d0000000b0042313f42b26sm7615830oou.39.2022.08.30.20.18.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Aug 2022 20:18:58 -0700 (PDT) From: Felipe Contreras To: zsh-workers@zsh.org Cc: Peter Stephenson , Daniel Shahaf , Bart Schaefer , Felipe Contreras Subject: [PATCH 2/2] Increase default HISTSIZE to 1000 Date: Tue, 30 Aug 2022 22:18:54 -0500 Message-Id: <20220831031854.27312-3-felipe.contreras@gmail.com> X-Mailer: git-send-email 2.37.2.351.g9bf691b78c.dirty In-Reply-To: <20220831031854.27312-1-felipe.contreras@gmail.com> References: <20220831031854.27312-1-felipe.contreras@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Seq: 50546 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: If the default is sensible it's not necessary for the user to change it. Signed-off-by: Felipe Contreras --- Etc/FAQ.yo | 13 +++++-------- Functions/Newuser/zsh-newuser-install | 1 - StartupFiles/zshrc | 2 +- configure.ac | 2 +- 4 files changed, 7 insertions(+), 11 deletions(-) diff --git a/Etc/FAQ.yo b/Etc/FAQ.yo index dd573767e..4c058c363 100644 --- a/Etc/FAQ.yo +++ b/Etc/FAQ.yo @@ -1626,19 +1626,16 @@ work?) sect(Why is my history not being saved?) label(321) - In zsh, you need to set three variables to make sure your history is + In zsh, you need to set two variables to make sure your history is written out when the shell exits. For example, verb( - HISTSIZE=200 HISTFILE=~/.zsh_history SAVEHIST=$HISTSIZE ) - tt($HISTSIZE) tells the shell how many lines to keep internally, - tt($HISTFILE) tells it where to write the history, and tt($SAVEHIST), - the easiest one to forget, tells it how many to write out. The - simplest possibility is to set it to the same as tt($HISTSIZE) as - above. There are also various options affecting history; see the - manual. + tt($HISTFILE) tells the shell where to write the history, and tt($SAVEHIST) + tells it how many lines to write out. The simplest possibility is to set it + to the same as tt($HISTSIZE) as above. There are also various options + affecting history; see the manual. sect(How do I get a variable's value to be evaluated as another variable?) diff --git a/Functions/Newuser/zsh-newuser-install b/Functions/Newuser/zsh-newuser-install index 386844a71..46b1639c5 100644 --- a/Functions/Newuser/zsh-newuser-install +++ b/Functions/Newuser/zsh-newuser-install @@ -790,7 +790,6 @@ ${(F)unparsed} __zni_history_config() { __zni_apply_defaults -p \ - HISTSIZE 1000 "Number of lines of history kept within the shell." \ HISTFILE $zdmsg/.histfile "File where history is saved." \ SAVEHIST \$HISTSIZE "Number of lines of history to save to \$HISTFILE." diff --git a/StartupFiles/zshrc b/StartupFiles/zshrc index d4e1d03cc..f8a0233bf 100644 --- a/StartupFiles/zshrc +++ b/StartupFiles/zshrc @@ -79,7 +79,7 @@ export HELPDIR=/usr/share/zsh/$ZSH_VERSION/help # directory for run-help functi unalias run-help && autoload -Uz run-help MAILCHECK=300 -HISTSIZE=200 +HISTSIZE=1000 DIRSTACKSIZE=20 # Watch for my friends diff --git a/configure.ac b/configure.ac index 890ef8dd2..6ca5c9189 100644 --- a/configure.ac +++ b/configure.ac @@ -3213,7 +3213,7 @@ AH_TOP([/***** begin user configuration section *****/ #define USE_SUSPENDED 1 /* The default history buffer size in lines */ -#define DEFAULT_HISTSIZE 30 +#define DEFAULT_HISTSIZE 1000 /* The default editor for the fc builtin */ #define DEFAULT_FCEDIT "vi" -- 2.37.2.351.g9bf691b78c.dirty