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 autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 27462 invoked from network); 14 Apr 2023 14:42:47 -0000 Received: from zero.zsh.org (94.142.241.90) by inbox.vuxu.org with ESMTPUTF8; 14 Apr 2023 14:42:47 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1681483367; b=KVqnfQSOoE32PtHfXTwWAMDRji9nq0HxBHe2giP9nIp//GtqUgJkQEtBgOCkMD8yXejBeXjzLv j/iAcTjKslD0ObEjzTNydZzcz4B12X+1gXgKUO6drjcTjp7o09CAc6kFh3Yggf7MJoYVzgQugS 5hzCOXpDN7M+U2Q+Kj0h+EpCy8wTjgUrzpRDJU7eqkZuAZem8bnzsMY0s90OYeaSbj00qrgjNm nYVNhYXfyzUMj3GdEd/fnqh3nf9ffX0oxmjv2OePdWK4QtXOej0gAixVAc/32GodYP0YkN8aJ9 NLgOkn5H5acSl9zO6RfYnoaxr6Y8hoT8c1asEgmXmri8LA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-yb1-f175.google.com) smtp.remote-ip=209.85.219.175; dkim=pass header.d=gmail.com header.s=20221208 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=1681483367; bh=oPnBz55cvHm/OmwDirdf9Fap57Z3zjpcPTBwK4Hft60=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:Cc:To:Subject: Message-ID:Date:From:In-Reply-To:References:MIME-Version:DKIM-Signature: DKIM-Signature; b=MRGmrfu4BI8/+xb3OOHw3dYapPQ/u/Wn4vzphcrVt05u2qrZvc1xIS7AObHIOoK9v0hl7quoxf 9EAH+2ZjFP3ThvFNoXuvNbRGbQpbGEno5eRgDACfMTCTCAu9+gDl/Cj+1mz7XhSKGTr2RjeeQZ PbExSV1+AZS3DewVcBBEifcqGatRpWPPLDJdw0WLsYAAH32SqMJVviogxhGWPopHpAsvthueFM Pj9MlUhgd4xQyyMuqmTDz8wU7zcEzWe1tUy4lr0pJ2mP/guzgwC0i+DSBCLVaaT3CLQEN2ytlX Q5hoGawAQWQlDSSe6Fk2PaHMJ7iNrHZjHjT/B0YePUQtlw==; 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: Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To:References: MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=jZIwwqQgjh8XGrNaLELY1PyMWoJRZBA5ApHrPYKuaXw=; b=WDAJW3D+mRqIqaqpHjBNHUA17m DSFDFYCW+9xdnqS6mosAhl0dMRUNmRS4Osnj8QNbyl1ACKs+EQOYrwSLheNur/5dSOQaB2+TphaOZ aTuKlEyrdIJ0wqICFr/gx9X9EYIsJqsGaleoO/PnD5iZqnm6jGvFvoc8mfVjmc/1/PPjDD9W4MbnS wgNN1fVDbMPSn81bb3BIcyya7I1MPyo3vMji9VYApCb2zlv1HfbOZDoMtLsHXimuMpgBwoCkq8pFX FncCVkhE92PBDX6N6FlULWDaxEV1K9JIIn5oH42gyDEz8d+1Aw3Io0KQvhbZZsK7/leaOzmXygWfc HXudEflw==; Received: by zero.zsh.org with local id 1pnKdT-000Fzh-3C; Fri, 14 Apr 2023 14:42:47 +0000 Authentication-Results: zsh.org; iprev=pass (mail-yb1-f175.google.com) smtp.remote-ip=209.85.219.175; dkim=pass header.d=gmail.com header.s=20221208 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-yb1-f175.google.com ([209.85.219.175]:42783) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1pnKPm-000EXw-HO; Fri, 14 Apr 2023 14:28:40 +0000 Received: by mail-yb1-f175.google.com with SMTP id by8so2776673ybb.9 for ; Fri, 14 Apr 2023 07:28:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681482517; x=1684074517; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=jZIwwqQgjh8XGrNaLELY1PyMWoJRZBA5ApHrPYKuaXw=; b=PqLLCErlifvH/Yg5DE+Fn5UzFaqiRqVNX6/wGjQay0zcMvaszobf8zAKuTwJdFcxs/ RYZPhf3dweLL32/A8Xl1AnbRbbWbOXD9+PHADgiSOYPA2RUPAFPwq9YbfIAcRci9WDl0 ZS1Y6sqmQu/RgdmLf/rViwJabaIX+ZEO8AxpP6CX/Z/5nzoQCXmwp8iunZOOQxu+DbBj LkYj2SnNCebe5n/+AIAyFr5w7HbgjPgd7sQxqfkOGA/x6B0cczNQ2lXN9GGktPEEL8/R g6z9zL9UQobAituBpAE96U5KTt2ixZG9j7ggrmyBYhkDerAwgfpaL8knHHa0bc1a5qKM 79Uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681482517; x=1684074517; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=jZIwwqQgjh8XGrNaLELY1PyMWoJRZBA5ApHrPYKuaXw=; b=dl4YAIiJPWwx4d/bnSiEUynPaTRVK2MKvoV9b0j0NckD9k6DUbb5aiVRm9fxYMCuJ/ yYfjgjTTUqaWsHnj1sIuPvUnzG2ke+rm3XuXUBOcZeywH4ywRPMfeA+9aYGipDd7+fcL nRhPKxfybsrShaBjFN4yj0wa/yNIx935Npdt/kAcmwD8lv+k7Sho6NOfFTKSWPWF6/Id fGykSU935AmamWwKze13YYc8qYDFiDM9iJ1X8icftGHT0IlioxDd4Cmjun4ITO39DES9 o2CAKENJ8KF4Easpsqg+TekWgx6n8gtoAlpGocbjRV+H/9QrjfyHmL8eigM0QRxF9g8E dZQw== X-Gm-Message-State: AAQBX9eWb6qvyI+/PISo1FtMS4o/G1lpwSj7AVQ9meduqQbtcMnmtd6j jjF8QkMWtnrY3YLqZCAdMi8VCZEOPLhj/ZLD7a8= X-Google-Smtp-Source: AKy350Y8ABV1KudR/mxfQFgn5+4MSKJuzflgzMbf9mTxo14Zu88vS/y/h1mEAPFwDuWMge1jn0YizdqFhIj9YLn3AiI= X-Received: by 2002:a25:7349:0:b0:b90:7f4:c248 with SMTP id o70-20020a257349000000b00b9007f4c248mr847207ybc.0.1681482516732; Fri, 14 Apr 2023 07:28:36 -0700 (PDT) MIME-Version: 1.0 References: <81609CF4-42DA-4E0F-A6E5-C5D58578B4F7@easesoftware.com> In-Reply-To: From: Felipe Contreras Date: Fri, 14 Apr 2023 09:28:25 -0500 Message-ID: Subject: Re: .zsh_history To: Ray Andrews Cc: zsh-users@zsh.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 29017 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: On Sat, Apr 8, 2023 at 12:23=E2=80=AFPM Ray Andrews wrote: > > > On 2023-04-08 09:53, Roman Perepelitsa wrote: > > > > Yes. If you exit all shells, you'll have history from all of them > > saved within $HISTFILE. > > > > > I can't remember if it's stock or something I cobbled together for > myself, but my history is updated in real time, I don't need to exit. > All shells have all commands available from all other shells in real > time. Only thing is that I have to press ENTER to update each shell to > the current state. Tho my history selection function doesn't even need > that, it's up to the second all the time. You have SHARE_HISTORY on. It's not on by default. Why not give a try to some minimal defauts? mkdir -p /tmp/zsh touch /tmp/zsh/.zshrc ZDOTDIR=3D/tmp/zsh HISTFILE=3D/tmp/zsh/.history SAVEHIST=3D30 zsh It seems nobody knows what vanilla zsh actually does. > Mind, I've sometimes wanted to be able to isolate a shell from history > and I expect that's easy, tho I don't know how. Quite easy: fc -p It creates a new history stack (no $HISTFILE). To return to the previous on= e: fc -P Cheers. --=20 Felipe Contreras