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,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 26873 invoked from network); 9 Feb 2021 01:26:45 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 9 Feb 2021 01:26:45 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1612834005; b=J4TaFDeeu+bb8Q+snebUAhXFrjT8UfC4RvtQtdHWY5CCOcaW2zTTYgcB1FrACh9XN6yrXqd3j5 qaG1xzDXL9xti0GfBAO/vXaWkO3zSB5fpz0kIdhQc+frYa9L3Q9YQFJRwVKpmvV4RMJGo1VTxr eAltyW8j4t7QqWyQ5O0V+qXR1txHugemz/KUPL9tjMfNRonAHVky6YbUi5ACW7DL1z0p9LwUER QaT85Ngv9xpmxzDlOFgOgJZVAH4g0jNv5n+aKfskrVWSE4CjwTy0SG8nM58nkTvhrn1llWtYrP /4uK6AQVR2VHpVOI45QpqYYGKqgH6Q6zShZAJdypiybTeg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (so254-31.mailgun.net) smtp.remote-ip=198.61.254.31; dkim=pass header.d=klanderman.net header.s=mg header.a=rsa-sha256; dmarc=none header.from=klanderman.net; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1612834005; bh=A1k77uPh5iPce97lDC4dQvzEy2x+eQWgP7DjP4iqiBc=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:MIME-Version:References:Message-ID:In-Reply-To: Date:Reply-To:Subject:To:From:DKIM-Signature:DKIM-Signature; b=krFV4WikxdrgYISIJcRN2+np/vul5wCIej6CVIt9ya0x4iAtnfZfVDlgkK30gxNImpuZoVUknV NH/7w47olmKfMrSMaQnNBtto4dAYEBYNpHAaNafY028Wu1Xv/DXSI2UpzcSXHjfoDZ+VuENbNR K0bhMSKlzOoqgKp00F/XY2QyPRSCgS9Uov37E4eIgPZ61AfR/GurbzmYnrMeqCy19FoqHiS+j6 iI0B1HdGk33Gl2JjZCy/SRPqCJYUGsffoF/RFDpg/qjD086ysPtqf2eOHDcNxJRDHo9xkWQC41 dhJkli0PREqp/1DBL9Tn67G36dAEyoBls+c+ellPC6Wzrw==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:MIME-Version:References: Message-ID:In-Reply-To:Date:Reply-To:Subject:To:From:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=vwd9FxM+Pl9L7PuBpv/C2JDwL/WO2kzXRnw9rL3E5p4=; b=SfnxYre924rsnKma3UBCK6HZuK TJ/pehkePrvKz66nLtIjpYfdAzMsZsj1t4TqOGBgREMjpIX2Uf1zDhoEZlejSp7JXeL/mZQ15eEF3 KTtlAixJVpmSiHHh0FfmVP7NnQgJzDhejxxs1ViJBNuq8rVpKbQvsxpGEQZsrolzmD/hCRFwwAY/C O0RrqcjhOYi56cqXgaJThdRxR+NHdIng/TUcGVtJKn8kO+m7AkleNHnT4Sq+oSud5kLPEMDU4hLPZ KJA7SRI8RwZnkqLGqVvmWryezXaQjkQu7s064axJ4SllpLylYXn/2Y3iRRkk72anNBQ8F6UWjfDg3 Gvhdi9vQ==; Received: from authenticated user by zero.zsh.org with local id 1l9Hne-000ARd-KC; Tue, 09 Feb 2021 01:26:42 +0000 Authentication-Results: zsh.org; iprev=pass (so254-31.mailgun.net) smtp.remote-ip=198.61.254.31; dkim=pass header.d=klanderman.net header.s=mg header.a=rsa-sha256; dmarc=none header.from=klanderman.net; arc=none Received: from so254-31.mailgun.net ([198.61.254.31]:41907) by zero.zsh.org with utf8esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1l9HnL-000AJ7-4d; Tue, 09 Feb 2021 01:26:27 +0000 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=klanderman.net; q=dns/txt; s=mg; t=1612833985; h=Content-Type: MIME-Version: References: Message-ID: In-Reply-To: Date: Reply-To: Subject: To: From: Sender; bh=vwd9FxM+Pl9L7PuBpv/C2JDwL/WO2kzXRnw9rL3E5p4=; b=KeJ244hN6AROhD+hLpY0U+LM8nyVTzG1qPUu9ilH7yV/PM2AR1dfJWTsh0t+Fz6mOvxaX47b yOpEA69ek2bOUsVF16m7ajQ+W0HrdDxwEotkvt41iRvytorvTW2n2rcyktJFgHIDRKbsZOMz Vx7/7Da0Tjhix7FeYYHf8Rm6Mig= X-Mailgun-Sending-Ip: 198.61.254.31 X-Mailgun-Sid: WyIwZjNkNyIsICJ6c2gtd29ya2Vyc0B6c2gub3JnIiwgIjk3ZGJkOCJd Received: from smtp2.klanderman.net (smtp2.klanderman.net [142.93.10.110]) by smtp-out-n03.prod.us-west-2.postgun.com with SMTP id 6021e4b1f112b7872ced7953 (version=TLS1.3, cipher=TLS_AES_128_GCM_SHA256); Tue, 09 Feb 2021 01:26:09 GMT Received: from lwm.klanderman.net (pool-72-93-77-73.bstnma.fios.verizon.net [72.93.77.73]) by smtp2.klanderman.net (Postfix) with ESMTPSA id C270E415C8; Mon, 8 Feb 2021 20:26:07 -0500 (EST) Received: by lwm.klanderman.net (Postfix, from userid 1000) id 8581F29E16D4; Mon, 8 Feb 2021 20:26:07 -0500 (EST) From: Greg Klanderman To: Zsh list Subject: Re: additionally saving history for each directory? Reply-To: Greg Klanderman Date: Mon, 08 Feb 2021 20:26:07 -0500 In-Reply-To: <878s8yksp0.fsf@lwm.klanderman.net> (Greg Klanderman's message of "Tue, 12 Jan 2021 11:47:55 -0500") Message-ID: <87sg662frk.fsf@lwm.klanderman.net> User-Agent: Gnus/5.1008 (Gnus v5.10.8) XEmacs/21.4.24 (linux) References: <24543.52705.896312.857217@lwm.klanderman.net> <877dp9omok.fsf@lwm.klanderman.net> <878s8yksp0.fsf@lwm.klanderman.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Seq: 47958 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: Archived-At: Figured I'd follow up with this on workers since I never got a response on whether save_per_directory_history () { setopt localoptions incappendhistory fc -p -a .zsh_local_history 1000 print -sr -- ${1%%$'\n'} } should work in zshaddhistory_functions for saving local history. I'm seeing the local history file getting created if it does not exist, but nothing is ever written to it (zero size). If I remove the 'print -sr' the local history files do not get created, so it seems like the print should be adding the history line.. thank you, Greg