zsh-users
 help / color / mirror / code / Atom feed
* History search and regular expression
@ 2010-08-04 15:36 Anonymous bin ich
  2010-08-04 15:43 ` Jérémie Roquet
  0 siblings, 1 reply; 2+ messages in thread
From: Anonymous bin ich @ 2010-08-04 15:36 UTC (permalink / raw)
  To: zsh-users

Hi!

Is it possible to search through the history using regex? An obvious
way is to grep through the history file, but I want to know if ZSH
supports this functionality.

PS: My previous attempt to send this email at zsh-users@sunsite.dk failed...


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: History search and regular expression
  2010-08-04 15:36 History search and regular expression Anonymous bin ich
@ 2010-08-04 15:43 ` Jérémie Roquet
  0 siblings, 0 replies; 2+ messages in thread
From: Jérémie Roquet @ 2010-08-04 15:43 UTC (permalink / raw)
  To: zsh-users; +Cc: Anonymous bin ich

Hi,

2010/8/4 Anonymous bin ich <ichbinanon@gmail.com>:
> Is it possible to search through the history using regex? An obvious
> way is to grep through the history file, but I want to know if ZSH
> supports this functionality.

Not builtin, but you may use globbing with
history-incremental-pattern-search-backward

bindkey '^r' history-incremental-pattern-search-backward

(for example)

Best regards,

-- 
Jérémie


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-08-04 15:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-04 15:36 History search and regular expression Anonymous bin ich
2010-08-04 15:43 ` Jérémie Roquet

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).