diff options
author | terminaldweller <thabogre@gmail.com> | 2022-07-15 13:47:56 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2022-07-15 13:47:56 +0000 |
commit | 5a2d75df546df3321b3a20ebe84dae2f91019e84 (patch) | |
tree | ca27e5395beee772dc4931110018e135700c7a05 /bin/xman | |
parent | updates (diff) | |
download | scripts-5a2d75df546df3321b3a20ebe84dae2f91019e84.tar.gz scripts-5a2d75df546df3321b3a20ebe84dae2f91019e84.zip |
secrets
Diffstat (limited to 'bin/xman')
-rwxr-xr-x | bin/xman | 23 |
1 files changed, 18 insertions, 5 deletions
@@ -2,8 +2,21 @@ # xmandoc MANPAGE - read manpage of possibly not installed package xlocate "man/man..\?/$1\.[0-9]" 2>/dev/null | - { grep . || { echo "xmandoc: No entry for $1 found." 1>&2; exit 1; } } | - while read -r pkg page; do - page=${page#* -> } - xbps-query --cat=$page ${pkg%-*} | mandoc -O width=205 -a - done + { grep . || { + echo "xmandoc: No entry for $1 found." 1>&2 + exit 1 + }; } | + while read -r pkg page; do + page=${page#* -> } + # xbps-query --cat=$page ${pkg%-*} | mandoc -O width=205 -a + xbps-query --cat=$page ${pkg%-*} | + mandoc -O width=205 -c | col -b | + vim - -M -R \ + -c 'set ft=man nomod nolist' \ + -c 'silent only' \ + -c 'colo iceberg' \ + -c 'highlight Normal ctermbg=None' \ + -c 'highlight lineNr ctermbg=16' \ + -c 'hi EndOfBuffer ctermbg=16' \ + +only + done |