Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Cool "zman" function for reading zshall manual page
- X-seq: zsh-users 21949
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Cool "zman" function for reading zshall manual page
- Date: Mon, 19 Sep 2016 18:16:33 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=L1w2tjXaxu5eaAkiEU6Va6mQLttB0Fqx/2Vf2DYA0ck=; b=SG9KJpuwQae4rnfXuqIgJulVjv0Fs7r83fXZT/7wSaorZrGLfL9snZCBKOoLucon90 94cElgtXjW3CKUCCOo2x0REuE5R4jwdPgSLsD2o0kPtV/T+sW5JHMBk0vMpCCX3Q9Brs 74MvgqNPEsF2mFEuiH/x0bSkFEWNMeBpxA4r/IzFiDFkHpCBpYgggRppztZCM+BpeNwL NzDFOLm8eO5aekrqmb3QiMYV3N5Z8HqIvbE9mpR4R1c8ITi8Q5TXnherUAMJIICnlhii lmXJphB9XbE7QrgJveSziz9z7X5TOEiDvo59r5lAsSa4aoKOIqnXqT6QjwJbIA7lIrFR pJLg==
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
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