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

Cool "zman" function for reading zshall manual page



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



Messages sorted by: Reverse Date, Date, Thread, Author