zsh-users
 help / color / mirror / code / Atom feed
* Cool "zman" function for reading zshall manual page
@ 2016-09-19 16:16 Sebastian Gniazdowski
  0 siblings, 0 replies; only message in thread
From: Sebastian Gniazdowski @ 2016-09-19 16:16 UTC (permalink / raw)
  To: Zsh Users

zman() { PAGER="less -g -s '+/^       "$1"'" man zshall; }

The thing is it has those spaces counted after ^ – zman "read" is 4
"n" hits in less, instead of 10 when doing "/^ *read" search. I
wouldn't share this, but it works also for those always hard to find
flags, if one will invoke as:

zman "f "

for "f" flags, modifiers, etc.

Origin is http://chneukirchen.org/blog/category/zsh.html


Best regards,
Sebastian Gniazdowski


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-09-19 16:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-19 16:16 Cool "zman" function for reading zshall manual page Sebastian Gniazdowski

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