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.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 3846 invoked from network); 24 Aug 2023 17:48:35 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 24 Aug 2023 17:48:35 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1692899315; b=V/Y2sfCQ6+GdJQgGVofQcJZcyG6L3pAcScg3AtKkS34ES9y8wZlvHNEZHhid9zgxPR4dYZvRs4 gIkwjzXFnd3w/JULxNmrPnFJXv9wqkCYVrmcB8ryg5WJZgB2q8lsbOv19Hm/qYB11Q9cj8T6RE pDBuUE01BgmE9yCmfnvnnAfXPSV0LjiR5jEbuYa2xLDLgXuI4FOdaz+0gj9+K3hxmXDa2WSFIY sQuM+Q7JBwFW39ezV45Boziw0K3X+fUOnlI9M0LUUwYWP6CfQcwtxu93xJEdTb17Uw3S5C+tDS g1DVI0SFiHU2uMEo+MVrGwIY6fxIKB5hbBhkI9w4Q3Qwpw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ej1-f42.google.com) smtp.remote-ip=209.85.218.42; dkim=pass header.d=brasslantern-com.20221208.gappssmtp.com header.s=20221208 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1692899315; bh=T6zNrjApBYI4Wl7F610vfJLr44AwDsiaq9qQXqveG6I=; 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=n5WLEKGx9N4NwowFRfFGYUgI7q23WKeM+WCkhJB1dk0Q4iieewB6yElwVdWrY65Gof3toI0sLN Mqw5o9rdDRhT0bWpLz15fKYxQYFiPLuv9+D9MnvTrQ+tuoNqnXcX9kAD1bkusG2dX+no0Lp0we WyVNHxPU6wl4BcDst9oqfCAkGJiJfC/a8YHgVuv3r5ztsauJMsc5N0VRGigx6lgbCVE8JQ3hPi F1S32CzOPHMiTYbOV7ZGj0i72FtddbbQoY5q//GGhmA6GhH2g1mwO+wGlNiEF9dSnuUIk6Y152 McaSg2muFWjX1vdgZSMNGRJ0WDraCVkXKyG8nE0VPrcGJg==; 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=uzJxdf1HFZipDl2bJffVXxm/k10uTbwLMwLVUa8tCb8=; b=HHkrlJ+vcSLb1T3u9bTj610f2M cw79dTcxkxyT3IhI7b3VUs3T4SG9SsPrfItmos23Dr8hUDPWEck6OP+nJBoathVevwuyMfXFoHcKJ gB71mTyIksjdlZZrVd6UVwHEr7PLyyfnjVO9z2AtaSZ9InLUR0ZuknyAP/kAxj+NDBrNt7ipAFe36 VO67NxkgT6E50Br/tongRlbqv+nPd5igBw/mIwoWT2fkJSiLEYaX9argWyTpZS9faHNjiTXoB/c4A T6TnsGUuOW6P3pbOzWKt2eADKxHhtesaw6hTD5XHNPjvTGs8iMY0z8H9yjkp+CCi/NWyClbALqfUV eBfoeiVQ==; Received: by zero.zsh.org with local id 1qZERc-00042N-F1; Thu, 24 Aug 2023 17:48:32 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ej1-f42.google.com) smtp.remote-ip=209.85.218.42; dkim=pass header.d=brasslantern-com.20221208.gappssmtp.com header.s=20221208 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-ej1-f42.google.com ([209.85.218.42]:52237) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1qZEQr-0003Jn-VH; Thu, 24 Aug 2023 17:47:47 +0000 Received: by mail-ej1-f42.google.com with SMTP id a640c23a62f3a-986d8332f50so4926066b.0 for ; Thu, 24 Aug 2023 10:47:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20221208.gappssmtp.com; s=20221208; t=1692899265; x=1693504065; 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=uzJxdf1HFZipDl2bJffVXxm/k10uTbwLMwLVUa8tCb8=; b=HzP82rvnqTpDOfmTVxHTPTlXsq1unHYwu1fcCOTQx1CnLazTp62IvR2HoLoOUojW9o 0M4861KtBe1nIYgi1SQWlYMsx8Pwc/DDsklyjr+fmYFCVmPWyvhLPNiDxDcRLXAsWfwD 29WfFj2GI4CR56fTl+H2PP6KM8rR1Ro6YirG1JSHj4Hb/ODzfHgfy9YHwHnZdYa5SisH uZYSBUB1SICAI0Ny/EmFhd8rlOjanaT/oqrYR4WnQBr8dLc48moOwBqVn6/2VZqLYZMW nE+NYa67cMvKiU3XU6AyYpvoYZWZ8J+Gu5cxdCbP92iBUrvrrkJDNsq9xzWFw5YSy3CK tIAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692899265; x=1693504065; 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=uzJxdf1HFZipDl2bJffVXxm/k10uTbwLMwLVUa8tCb8=; b=KHhvleEGvychhXXOWUxHoLWc48h/6y4SsGW7PUin8AR5Th1E6G5EJpbf9Mls470Ixn xuxG3R6QjCRQ9LSLCfPgxRlSeViMMPIGpk9f7We+wWVKFfktrbLvBrH7iO6+zPSuRcJt m2DrX7MkaNuHpeWDoiSRCdes07VT3TueUzabhShQ9UA7p0CpaFgErx3Gc2cZIA4lr9Be ofpdpMjwugSgXw40VE3TBEf+wNZXghIXqWnxnQgYw4tN+AqFWAh9jmFCKcjfHehrphxu jThJdjKSW1KS3O9OkdEau5eXxKVx6Y3Dbxw1UZTStiJ5YiKde+1ACD/b4xw0QOUdfbjI w71A== X-Gm-Message-State: AOJu0Yxc9vm3NNkEk7CSYh2nznEjE16aCxzjbinsuUS2yOa6fE4C5VFX ycg5dCf+BksfzUnFIFeHFqzXiDZdO9xWYpTdJoYtFQ== X-Google-Smtp-Source: AGHT+IHAh0I7rsXHGlsT4pSaBtEu57moUulXUtrhInZ+mQa0yszZD407aVcwBRrzFJOYzYEMoHZWkFpXHAwIjRLe0wI= X-Received: by 2002:a17:906:3018:b0:99c:ad52:b00 with SMTP id 24-20020a170906301800b0099cad520b00mr11749305ejz.6.1692899265007; Thu, 24 Aug 2023 10:47:45 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Bart Schaefer Date: Thu, 24 Aug 2023 10:47:33 -0700 Message-ID: Subject: Re: widget accept-no-history To: Pier Paolo Grassi Cc: Zsh-Users List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 29196 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 Thu, Aug 24, 2023 at 7:01=E2=80=AFAM Pier Paolo Grassi wrote: > > I see, I wasn't aware of the zshaddhistory hook Just one quick addition: >> zshaddhistory() { >> [[ -o hist_ignore_space ]] && return 2 >> } That needs to be zshaddhistory() { [[ -o hist_ignore_space ]] && return 2 return 0 } Otherwise the failed [[ -o ]] test will cause a return of 1, which will cause the line to be skipped entirely.