| ... | ... |
@@ -29,3 +29,21 @@ webwin32() |
| 29 | 29 |
# websearch "https://learn.microsoft.com/en-us/windows/win32/api/" "$@" |
| 30 | 30 |
websearch "https://learn.microsoft.com/en-us/windows/" "win32/api" "$@" |
| 31 | 31 |
} |
| 32 |
+ |
|
| 33 |
+webman() |
|
| 34 |
+{
|
|
| 35 |
+ # See also <https://wiki.archlinux.org/title/Man_page#Online_man_pages>. |
|
| 36 |
+ |
|
| 37 |
+ # See <https://man.archlinux.org/#USAGE>. |
|
| 38 |
+ curl -sfL "https://man.archlinux.org/man/$1${2+.$2}.raw" | man -l -
|
|
| 39 |
+ # curl -sfL "https://man.archlinux.org/man/$1${2+.$2}.txt" | less
|
|
| 40 |
+ |
|
| 41 |
+ # See <https://manpages.debian.org/>. |
|
| 42 |
+ # curl -sfL "https://manpages.debian.org/$1${2+.$2}.gz" | man -l -
|
|
| 43 |
+ |
|
| 44 |
+ # websearch "https://man7.org/linux/man-pages/" "$1${2+.$2}"
|
|
| 45 |
+ # xdg-open "https://man.archlinux.org/search?go=Go&q=$1${2+.$2}"
|
|
| 46 |
+ # xdg-open "https://manpages.debian.org/$1${2+.$2}"
|
|
| 47 |
+ # xdg-open "https://man.cx/$1${2+($2)}"
|
|
| 48 |
+ # xdg-open "https://man.he.net/?section=${2-all}&topic=$1"
|
|
| 49 |
+} |
| ... | ... |
@@ -10,6 +10,7 @@ Provided shell functions: |
| 10 | 10 |
- `webcpp [<terms>...]`: C++ part of [cppreference][]. |
| 11 | 11 |
- `webc [<terms>...]`: C part of [cppreference][]. |
| 12 | 12 |
- `webwin32 [<terms>...]`: Native C/C++ [Windows API][] (also 64-bit). |
| 13 |
+- `webman <page> [<section>]`: [Arch][] [man page][]s in local [pager][]. |
|
| 13 | 14 |
|
| 14 | 15 |
[`dotfiles-websearch`]: https://git.rcrnstn.net/rcrnstn/dotfiles-websearch |
| 15 | 16 |
[dotfile]: https://en.wikipedia.org/wiki/Hidden_file_and_hidden_directory#Unix_and_Unix-like_environments |
| ... | ... |
@@ -20,6 +21,9 @@ Provided shell functions: |
| 20 | 21 |
[Ubuntu]: https://en.wikipedia.org/wiki/Ubuntu |
| 21 | 22 |
[cppreference]: https://en.cppreference.com/ |
| 22 | 23 |
[Windows API]: https://en.wikipedia.org/wiki/Windows_API#Major_versions |
| 24 |
+[Arch]: https://en.wikipedia.org/wiki/Arch_Linux |
|
| 25 |
+[man page]: https://en.wikipedia.org/wiki/Man_page |
|
| 26 |
+[pager]: https://en.wikipedia.org/wiki/Terminal_pager |
|
| 23 | 27 |
|
| 24 | 28 |
## License |
| 25 | 29 |
|