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 29023 invoked from network); 20 Dec 2020 22:19:54 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 20 Dec 2020 22:19:54 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1608502794; b=sjMogQHW2/FC/R55iQprX0QocoIz9QrWRDFeUV7DD81IAmyEcQO45CWHvEQmD8PS+MzniB0I5m RddOyz5GlBab+RoDmhBvoGc+9syu6o6TIy+JyQtlMKUxLklcslyWrNg59kWkcZU/Ee3//rsREL ZqHTnU8u96HRCFrBj7xBYpH6aKvbRfHHEvt5H4B+SrrMNT33AezZ5j41urg26gNh3P0F1ADSrd UkhztudHo9RNvA3jvsA+Ebj2zgt9oXVtnNrmf9nCCvtHWeUD2KRrmPd5+LnFck67k8U+IezqiG v9IYo3I7Oy5jnb6tvavkVoHSG7bHjMiBuVVGB5EDWu3tbQ==; 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=1608502794; bh=CbEM4zbuYdKIhmzu+H18LaxSlqC0KsePbBF68jAwdow=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Reply-To:Subject:To:From:Date:Message-ID: Content-Transfer-Encoding:Content-Type:MIME-Version:DKIM-Signature: DKIM-Signature; b=fK3AD1c8ZfzeAIj6ZByQfvmYtiq2ly4NtH1du88g6PQ/EE2mYkXzje6fHTg5vWVjZ3Gi+vcd9n NSkKO75iJmizHwNOfiiqiC3ggnPbjjMwhtyjp0fgXMPvW+HgTk9zZyQjSacMZrt0Gp67Xz0dt8 p2S3L+7rsY+Vd7WyMOOu1H0RNJKoD04R9yg4L01+MHv7uAujuAOQZiTJ8ioVDBXtJF6H9yRruh 3mrHnWFYgS5qLVLgukPrVVe/FhwI3aH9ZPQEEMRySb0VlsZWe7uX6Rx24ydP7JkZRmqkozI5zj JbKLbV0PUrLmCgjl9ijc2GDpsWu0g4KtQnQHLDmFwYk1Mg==; 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:Reply-To:Subject:To:From:Date: Message-ID:Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References; bh=5JdxUGP4AE6S8i9bBt1Us2puxh4wWcYTzPg0Ex29YZM=; b=LXYFVqk6ZN64xXuX7iRxzE8ZWQ W8psTfWdgnXQcp78RE6UefKSiiF7XybsNoj7x3qRgPPVSi/83TG6AsPvfGwV8evmXfuuNA27JLSJN pm2/y1FWaTJLt+DoDG6i9DX57X+y2GzciXtlSeQaCO16mH1AavGpR7on03cWSgsY7E0HUKID7cyDP geFzgPHrcPQZDWSAbIhnS4FCeKi/d0snYzmhuGmYe4Yzwvx+Uf7/mSH8hmINmD/Y5pi3nejW6L+gr +DzSHeRdzTSxSMlUnaY5BXL5mBON4g2EWt489/6FwXbek+oG11zOjZDQiMCKhdeRDWdhrAt7XZTVU lpwFdCog==; Received: from authenticated user by zero.zsh.org with local id 1kr73P-000KwH-FH; Sun, 20 Dec 2020 22:19:51 +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]:33419) by zero.zsh.org with utf8esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1kr72x-000KZz-Hf; Sun, 20 Dec 2020 22:19:25 +0000 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=klanderman.net; q=dns/txt; s=mg; t=1608502765; h=Reply-To: Subject: To: From: Date: Message-ID: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=5JdxUGP4AE6S8i9bBt1Us2puxh4wWcYTzPg0Ex29YZM=; b=JqjVTXo12tJ/gju+6Z2V1HYA7b7n96fYfUxeT4Owudp0P3LWuByeM5Yqv/MbS0wXwxL7+WvL jI1ltoOKBKsEr0vUci7iKYn7hRzN8WMn7DwK8mgtx+e/b/ADDYGC1Xytv4ngFhUJfLCmnIQC rf9lwlA1u26KHOeKh3o8HP5FyK0= X-Mailgun-Sending-Ip: 198.61.254.31 X-Mailgun-Sid: WyIzOGFmNSIsICJ6c2gtdXNlcnNAenNoLm9yZyIsICI5N2RiZDgiXQ== 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 5fdfcde3031793dcb4949aa6 (version=TLS1.3, cipher=TLS_AES_128_GCM_SHA256); Sun, 20 Dec 2020 22:19:15 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 49250417AE; Sun, 20 Dec 2020 17:19:14 -0500 (EST) Received: by lwm.klanderman.net (Postfix, from userid 1000) id F22D629E3999; Sun, 20 Dec 2020 17:19:13 -0500 (EST) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <24543.52705.896312.857217@lwm.klanderman.net> Date: Sun, 20 Dec 2020 17:19:13 -0500 From: Greg Klanderman To: Zsh Users Subject: additionally saving history for each directory? Reply-To: Greg Klanderman X-Mailer: VM 8.0.12-devo-585 under 21.4 (patch 24) "Standard C" XEmacs Lucid (x86_64-linux-gnu) X-Seq: 26249 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: Archived-At: I feel like somewhat recently someone posted a few line example of saving per-directory history, but I've been unable to find it. Somehow that popped into my head earlier, and seemed like a useful feature to additionally be saving history across shells to directory-specific history files, and then have alternate key bindings of eg. history-incremental-search-backward and history-beginning-search-backward that search the history for the current directory instead of the shell instance's history. Anyone have a simple recipe for something like that to get me started? thank you, Greg