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 6999 invoked from network); 31 Aug 2022 03:19:48 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 31 Aug 2022 03:19:48 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1661915988; b=U6IkNrbfBaFiJ/p4ZBWuD8NQyAjPgGJVRrPzH3TG8bsXX8F1jcGGDTRywlniDlipYKyJnSsZw2 ZCE8TyY3QMyheHzQHj2eqv6Pwl0fzA4cL23e2v4FfpM5gYOjIwg5NjmhbyDIhY2ECiofNdEU+0 DjbgVWbnvI8QgMvSsxGKXGil5wSmxTYqI1fT+5R9p+KtKg9KVd/Q6j8Msuo5XN6ya3blM6NVW4 kOgWvPH7WB54biyYzhUQLweFKPjvpqTAHWVSSyaXuLQ7JVdEGNCwAS0YCn0cjU3ZKyTsu+gMFn 9CmG7jYAlF2J6LqQd7ReD4slhvu7UGeePoa2KWRkhnm+vA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-oa1-f52.google.com) smtp.remote-ip=209.85.160.52; 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=1661915988; bh=KmUDsFVvQCbpzcOn2Fngcgax4B/uNR6K5teda9vtW3o=; 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=huFqoUzcSbVdLvMYSp7vNYt1Yo+rOY5Qsc5GL1sL/pskt72Fs5Ttczx9xzNKn/TBtc4miYYWFc LLbAkIeXvzi2yQk+vaXZRDxYXKDuMYlJKDUdTzC2SGajzNefDFgXz/53MfspP+IZQyY+f2BYOE TH3TRvjVB+++crrdvcgxW7pCaA9p5k1ucXBsEFG8m0CucK3XBqtJb8cfm9AqfOhn9nHqzJPB7D HZLCsqZOyQFvswmPptqMPBsSEV1TRk35zb9jG3AWemRcQGBWDoLedQlWgMwmfGApPr555zDRWp hJj6M1vJUOmw9fOQFaDX9TPKRFOWoCceevWOotW6e6OPcg==; 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=yNxfYvUoXxSQ8pMINc+2dsqn94xDklZOkvQCbFsBllk=; b=Vx2gF21M9uWICvlLLf6qW63TEn bE7qGK21jiJisV5oE8800QtaJe5P8Vli+CAoTQioXP4s51CCz5M/cr5xU0AH1jvnpi31GIUIWXCut yk+huDle5EQWe3b+v5Lndbg2LC2Ww2atdoxpCrg4d7NblCG7o5AcOLu5nRZY5L02RbmGzaexZn5Co xGWlUckkYCPoWX8ief28KI27pnuu9gbEZiRkGgrQAeqQpztFOBVG9F1XEkMlDsJ2hi7jTAVvGewBq /iaJU2AND1xufAL0tSnLn4khWGr9R1SvpOlOj59xlz1DgIWCva9HV2+/Qwn7lDuYBo+/7Uh/xnHGG 9HinhDKA==; Received: from authenticated user by zero.zsh.org with local id 1oTEGZ-00046t-3p; Wed, 31 Aug 2022 03:19:47 +0000 Authentication-Results: zsh.org; iprev=pass (mail-oa1-f52.google.com) smtp.remote-ip=209.85.160.52; 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-f52.google.com ([209.85.160.52]:41877) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1oTEFn-0003bB-5I; Wed, 31 Aug 2022 03:18:59 +0000 Received: by mail-oa1-f52.google.com with SMTP id 586e51a60fabf-11c4d7d4683so21370620fac.8 for ; Tue, 30 Aug 2022 20:18:59 -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=yNxfYvUoXxSQ8pMINc+2dsqn94xDklZOkvQCbFsBllk=; b=K+WYygpkBHDSL+7PasGIgHR7x11KT2yMVRu8Iw4NhK7Ig7CQ+fk3dNDUuEvSun22G0 x08Vnxy6M74EFBbh5uVQ7Rh1zFIuYrPPDj6YazTG4LHqVzZ801gMkXdOoisXGts4HdL5 wls/KAUOOZejqkC6tTl45jE9mVq2tfCn6pK+3nTXV8bRL4BRgrgoLSkm3fTexct1KPAq hR6n6pcabhYBhWs4JwHI/vRU4IO3WyfxcpkjLMwh0TjiJFBOGds7LQwSjM2Ib1iQdhSY 46GIPLNJb23wRRGDMhz6Sy2nVMqxdlobzWDqm5SAoflc8bw/bwUbFIaasq0NI8pBYlEg 5rdw== 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=yNxfYvUoXxSQ8pMINc+2dsqn94xDklZOkvQCbFsBllk=; b=3TrUvCpLCwT7/wky0KabDZ4DIQP9Z8+Xn7Z0zJ4yvO83fW2ixNgHlsqfB1CXXBtvge rY8dxE6CWz30Jmdur/wNDRIMzE16Q+NR5aKuvlgMYjXqIOJM37f+OEv4XEeHEjLS1oWc FrpC9M8N+NgUhX3a0n4uQQVvsY54ZSAdSGQnDVysttsgFdEfK9zla9TbyxsTV4ppYL9J n79O69Tcv9vyBqvUVR8Vo9goOf51rxIjOPIgI5bypU7BgPA8krNFIRIni6YvGAZE/Pjt YE7OxJkUC5lqX2jxsbLa2+u7Ia0sR9XBGclW+3dSwB+IXs8foULc54izLTv/bFnEOwFz zKaw== X-Gm-Message-State: ACgBeo14rgFyWwmBmals+fM4kL8jwhH8ZV8LvZQLm2kcXCDeYS80Cf+u Rn+6SfSlHjLg8lOMjbenbyig4BAFgYk= X-Google-Smtp-Source: AA6agR7migMHvCbw0IUIUlLAi9kMKR5rTe0l/tqYaaFQXhcXnkgE+0UVuMSKU7IAAr6gKBxQQZncSw== X-Received: by 2002:a05:6808:1a26:b0:344:843c:5244 with SMTP id bk38-20020a0568081a2600b00344843c5244mr403517oib.74.1661915937972; Tue, 30 Aug 2022 20:18:57 -0700 (PDT) Received: from localhost ([2806:2f0:4000:eec:4ae7:daff:fe31:3285]) by smtp.gmail.com with ESMTPSA id 2-20020aca2802000000b0034378294973sm6839023oix.30.2022.08.30.20.18.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Aug 2022 20:18:57 -0700 (PDT) From: Felipe Contreras To: zsh-workers@zsh.org Cc: Peter Stephenson , Daniel Shahaf , Bart Schaefer , Felipe Contreras Subject: [PATCH 1/2] Set SAVEHIST to $HISTSIZE by default Date: Tue, 30 Aug 2022 22:18:53 -0500 Message-Id: <20220831031854.27312-2-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: 50545 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 they are the same, this makes it clearer that they are the same. Signed-off-by: Felipe Contreras --- Etc/FAQ.yo | 2 +- Functions/Newuser/zsh-newuser-install | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Etc/FAQ.yo b/Etc/FAQ.yo index 8c795685a..dd573767e 100644 --- a/Etc/FAQ.yo +++ b/Etc/FAQ.yo @@ -1631,7 +1631,7 @@ label(321) verb( HISTSIZE=200 HISTFILE=~/.zsh_history - SAVEHIST=200 + 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), diff --git a/Functions/Newuser/zsh-newuser-install b/Functions/Newuser/zsh-newuser-install index 9e911d07c..386844a71 100644 --- a/Functions/Newuser/zsh-newuser-install +++ b/Functions/Newuser/zsh-newuser-install @@ -792,7 +792,7 @@ __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 1000 "Number of lines of history to save to \$HISTFILE." + SAVEHIST \$HISTSIZE "Number of lines of history to save to \$HISTFILE." if __zni_display_and_edit "History configuration"; then install_state[history]="Unsaved changes" -- 2.37.2.351.g9bf691b78c.dirty