Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: ZSH feature request if not present



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