From: ZyX <kp-pav@yandex.ru>
To: jagmeet bali <jagmeet.bali@gmail.com>,
"zsh-users@zsh.org" <zsh-users@zsh.org>
Subject: Re: ZSH feature request if not present
Date: Wed, 14 Oct 2015 18:14:01 +0300 [thread overview]
Message-ID: <3232231444835641@web23m.yandex.ru> (raw)
In-Reply-To: <CAPTyOgfzxzWi83Y6hkbZAhgi9mCQDPV_Z-FR9egu1S7QkcJUSQ@mail.gmail.com>
14.10.2015, 17:52, "jagmeet bali" <jagmeet.bali@gmail.com>:
> 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
next prev parent reply other threads:[~2015-10-14 15:19 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-14 14:50 jagmeet bali
2015-10-14 15:14 ` ZyX [this message]
2015-10-14 15:55 ` Peter Stephenson
2015-10-15 6:10 ` Best Way to Test an Environment Variable czech
2015-10-15 6:32 ` czech
2015-10-15 9:46 ` Roman Neuhauser
2015-10-15 17:34 ` Corwin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3232231444835641@web23m.yandex.ru \
--to=kp-pav@yandex.ru \
--cc=jagmeet.bali@gmail.com \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).