| ... | ... |
@@ -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 |
+} |
| ... | ... |
@@ -13,3 +13,13 @@ webubuntu() |
| 13 | 13 |
{
|
| 14 | 14 |
xdg-open "https://packages.ubuntu.com/search?searchon=names§ion=all&keywords=$*" |
| 15 | 15 |
} |
| 16 |
+ |
|
| 17 |
+webcpp() |
|
| 18 |
+{
|
|
| 19 |
+ websearch "https://cppreference.com/w/cpp/" "$@" |
|
| 20 |
+} |
|
| 21 |
+ |
|
| 22 |
+webc() |
|
| 23 |
+{
|
|
| 24 |
+ websearch "https://cppreference.com/w/c/" "$@" |
|
| 25 |
+} |
| ... | ... |
@@ -3,3 +3,13 @@ websearch() |
| 3 | 3 |
# See <https://duckduckgo.com/bangs>. |
| 4 | 4 |
xdg-open "https://duckduckgo.com/lite/?q=!ducky ${2+site:}$*"
|
| 5 | 5 |
} |
| 6 |
+ |
|
| 7 |
+webdebian() |
|
| 8 |
+{
|
|
| 9 |
+ xdg-open "https://packages.debian.org/search?searchon=names§ion=all&keywords=$*" |
|
| 10 |
+} |
|
| 11 |
+ |
|
| 12 |
+webubuntu() |
|
| 13 |
+{
|
|
| 14 |
+ xdg-open "https://packages.ubuntu.com/search?searchon=names§ion=all&keywords=$*" |
|
| 15 |
+} |