From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1111 invoked by alias); 14 Oct 2015 15:19:29 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 20755 Received: (qmail 21900 invoked from network); 14 Oct 2015 15:19:28 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1444835642; bh=8IJGBOtB4kZwKmFrnc4SmytYQyHz0iIAobwT4iCyyA0=; h=From:To:In-Reply-To:References:Subject:Date; b=Qc0sfQqhUmdcv+GVVoQiVuAhYy25dMKqwsRoTK/jYKIbpf9/0C2pK/Ye/nhlOu67m Ty3sx36En+JJvo6WNr1fhnDl0XSarvQq9ByhEAoH36KNDRIHw07uVFgm9ia4QdcPx5 U35EatFoRSf/N8LXzRdU5QxxVWMDTLzvOolijr1o= From: ZyX To: jagmeet bali , "zsh-users@zsh.org" In-Reply-To: References: Subject: Re: ZSH feature request if not present MIME-Version: 1.0 Message-Id: <3232231444835641@web23m.yandex.ru> X-Mailer: Yamail [ http://yandex.ru ] 5.0 Date: Wed, 14 Oct 2015 18:14:01 +0300 Content-Transfer-Encoding: 7bit Content-Type: text/plain 14.10.2015, 17:52, "jagmeet bali" : > Hey is there a way where I can search all the commands I ran in a > particular directory. > Similar to forward or reverse search but all the commands which were run in that > pwd should be searched. > I have just started using zsh. So pardon my ignorance. Thanks in advance. > > Regards > Bali No, current directory is not saved. There was [some SO question][1] where it was discussed how to save pwd in history alongside with the command (using zshaddhistory hook). You need to take it and create a ZLE widget that searches among entries with needed pwd. No built-in functionality I know is present that may satisfy your request. [1]: http://stackoverflow.com/questions/2824051/saving-current-directory-to-zsh-history