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 23104 invoked from network); 24 Aug 2022 04:43:20 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 24 Aug 2022 04:43:20 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1661316200; b=aTmu/DL76GNioA4/bPZuo+4oFIrRpk4DTlABGKBvEW6n5dAi7OS2xAqtm/hB7QIJE0E4bIU2/7 zA8KzHeRCf12Ga+8FH2oVgNWPGoQ7NXWP9cMwTpvfney+5DGfl7v+ljk3ErNCZQSxeBq3L3bNi wmM5UdGYqw6yeUVK0vT5B8of+6oSb5Sh5TlAJv+72Mvgg03hgv7wzS1yPybTDGSEqJ10PzjYN6 un2skIdMT8+JAppaAPnsx0ONxUo/D8HQN6eun583/ZwGT2W4HrmjmahBX4L+zyAZ3OxDiTbXuY v6nfJYbrbzopTo1X/Migxq6KcmKQY9n+O1MQHywGp6SSAA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-oi1-f172.google.com) smtp.remote-ip=209.85.167.172; 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=1661316200; bh=d3fBiUHItsBGMlltzI0jESDvjRDO/mFKJgjBsYbDExA=; 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=Q1GN0smUSbk23j8czCwqf8mrZMG6zPEDDyQ+GdjfPi8fsQQirbU7DARit+JVZW/xOGWqxbkvPJ lu0yKBR6hWpIzwo3mnJNouYZdaUthEyOjJ9+F3a0jgDsc95L9i2mFojfCynGaZ+CTB6lm/GVNm 6QRWnnfINZlxiVcmeb0IDSpTtlI740+ftcr4ZRgnOmZCT0KaUAxUc5Y1m3TfuQwRpBFjyH4VS0 7u5SVNsSbK4hRQMzz+gTA4WB3ol2k/+CVm0wylkEg6EAb7wI6LQnjYNr/5HZVQntvSvjCONSL1 zXg1XHqIM974pkZnaMiLh+b/zL6EfM5OZjGAbY3FfrCmKw==; 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=4vwrvQ3BO4yX+9Vf4HchoM1C44YKivBNPhdkcPueX+U=; b=dbaEQshMPNVzblQFYP7tjPdaDG kWzvmwKW/8o3jfjxIfaJ3rNY8iOHjoC4U2/R/on6YpfLD2hRSM1x1m/FP1Ed4VxprRhnsuB9LycwJ +/poXPkDGYaRkmqP1wbbb+bDpOOwXrfGBIxyfSVq5g/JPTcqenCOF7dV/gn71o9wVy/+oWdKmEh9w LbeBRMJ/kqKBqJUCjcQkeFHcjPNfXroGwZEYq2tLQCPIerBFLB+Pd5G8tSOOO2A6rAzOJHfagiADV CXN4O3GM9eHjdZRF6EFYW2gfs3dBDvFSEeqXPRf1LmqpyTUnWE8NIsGRDuB+mXUfNGQtDFwc9llQO e2kD1RRQ==; Received: from authenticated user by zero.zsh.org with local id 1oQiEa-000EYY-Fy; Wed, 24 Aug 2022 04:43:20 +0000 Authentication-Results: zsh.org; iprev=pass (mail-oi1-f172.google.com) smtp.remote-ip=209.85.167.172; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-oi1-f172.google.com ([209.85.167.172]:40642) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1oQi3U-000Cno-Tu; Wed, 24 Aug 2022 04:31:53 +0000 Received: by mail-oi1-f172.google.com with SMTP id n124so7420406oih.7 for ; Tue, 23 Aug 2022 21:31:52 -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; bh=4vwrvQ3BO4yX+9Vf4HchoM1C44YKivBNPhdkcPueX+U=; b=FE+2Kr2ohygnsQAY7eIGyadteWXf9X9UObJDkoxJUnt+IKcz0XjQLmod9CnxzUxrqg ZHp4eryd68VR7nKel8yoi0EsH1AP8wOiq3TZ3NY5dSlrT4UP7tGURut1eYwdx3+6wdKG rvStg68WE9Cddv/KAGK9fzdjoqcHc2suc5lvPj18TMlRo+pERWNFBiiCqdj5qNiF4Ihh vEUdPexIyl+TbpLn2pkfl12gB5ZD7YSq6CwOsrJkEZxyF16yzomI5aYTcGGHwofUCXE/ ePFqMt4HQ+lk+/3GBvDl/LCS0VoXFukZJ2pKNqcqZX1uiEZVD9bT1b9onj+pAeoafSPF NBew== 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; bh=4vwrvQ3BO4yX+9Vf4HchoM1C44YKivBNPhdkcPueX+U=; b=L4Sq4GvGZIn37j6EAItk1ii+4pE1W3Cv6ko2n223+ikfY5x2jOiPtGdo08ZGtnJFe+ rBmMY290iThppSr/BnFSE2OaeSUm80tJTho0ggYPRO4a4QXfEjBQX2DpkCcVwMd6eZvQ gUPiaViUrJHCOJ08Kf5WHOnoUdkkBytA6m9N4bl7Qik6d003Gy8wAAi4TmNH9GKPk4BL L4/WF20nV6qytjHLp7MuUewIArgUkmEOtOQCuHrl+ThB3S6AhH1pZHkQBHNBAiMTRKvb m7BTGNMn7mvLKZZRoYd4IrsIlfguoeQcMHPqJSB2e/YHffTauIYgH+Er3GdxbnPEzLpb O/xQ== X-Gm-Message-State: ACgBeo2gzBsiIOmk56HjieoNwKcZRq+U5nmUAPuaJZiJt2dnRy12lrtF A6xrR/3W3vhzRVK2fiCkjHolOdvDFTg= X-Google-Smtp-Source: AA6agR7BBvChMf0WEPvQ6fHXym7hFjqzqGCrCKhh1eqEeAxr+2qTJNjWDDNh6H2oVidMf4LOhY6ceQ== X-Received: by 2002:a05:6808:d4e:b0:344:cc0a:2a48 with SMTP id w14-20020a0568080d4e00b00344cc0a2a48mr2434184oik.241.1661315511594; Tue, 23 Aug 2022 21:31:51 -0700 (PDT) Received: from localhost ([2806:2f0:4000:94d:4ae7:daff:fe31:3285]) by smtp.gmail.com with ESMTPSA id w3-20020a4aaf03000000b0044b060548a1sm3087089oon.27.2022.08.23.21.31.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Aug 2022 21:31:51 -0700 (PDT) From: Felipe Contreras To: zsh-workers@zsh.org Cc: Felipe Contreras Subject: [RFC PATCH 2/3] Increase default HISTSIZE to 1000 Date: Tue, 23 Aug 2022 23:31:44 -0500 Message-Id: <20220824043145.165779-3-felipe.contreras@gmail.com> X-Mailer: git-send-email 2.37.2.351.g9bf691b78c.dirty In-Reply-To: <20220824043145.165779-1-felipe.contreras@gmail.com> References: <20220824043145.165779-1-felipe.contreras@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Seq: 50501 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: Signed-off-by: Felipe Contreras --- Etc/FAQ.yo | 9 +++------ Functions/Newuser/zsh-newuser-install | 1 - StartupFiles/zshrc | 2 +- configure.ac | 2 +- 4 files changed, 5 insertions(+), 9 deletions(-) diff --git a/Etc/FAQ.yo b/Etc/FAQ.yo index a334dd384..74f8fbf6f 100644 --- a/Etc/FAQ.yo +++ b/Etc/FAQ.yo @@ -1626,15 +1626,12 @@ work?) sect(Why is my history not being saved?) label(321) - In zsh, you need to set two variables to make sure your history is - written out when the shell exits. For example, + In zsh, you need to set the location where you want the history to be written + with tt($HISTFILE). For example, verb( - HISTSIZE=200 HISTFILE=~/.zsh_history ) - tt($HISTSIZE) tells the shell how many lines to keep internally, - tt($HISTFILE) tells it where to write the history. There are also various - options affecting history; see the manual. + 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 26fcaed77..c952ff03a 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." \ if __zni_display_and_edit "History configuration"; then 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