Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: ZSH feature request if not present
- X-seq: zsh-users 20755
- From: ZyX <kp-pav@xxxxxxxxx>
- To: jagmeet bali <jagmeet.bali@xxxxxxxxx>, "zsh-users@xxxxxxx" <zsh-users@xxxxxxx>
- Subject: Re: ZSH feature request if not present
- Date: Wed, 14 Oct 2015 18:14:01 +0300
- 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=
- In-reply-to: <CAPTyOgfzxzWi83Y6hkbZAhgi9mCQDPV_Z-FR9egu1S7QkcJUSQ@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAPTyOgfzxzWi83Y6hkbZAhgi9mCQDPV_Z-FR9egu1S7QkcJUSQ@mail.gmail.com>
14.10.2015, 17:52, "jagmeet bali" <jagmeet.bali@xxxxxxxxx>:
> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author