Browse code

Add `webman`

Robert Cranston authored on 24/11/2025 22:10:51
Showing 1 changed files
... ...
@@ -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
+}
Browse code

Add `webwin32`

Robert Cranston authored on 24/11/2025 22:10:22
Showing 1 changed files
... ...
@@ -23,3 +23,9 @@ webc()
23 23
 {
24 24
   websearch "https://cppreference.com/w/c/" "$@"
25 25
 }
26
+
27
+webwin32()
28
+{
29
+  # websearch "https://learn.microsoft.com/en-us/windows/win32/api/" "$@"
30
+  websearch "https://learn.microsoft.com/en-us/windows/" "win32/api" "$@"
31
+}
Browse code

Add `webcpp`, `webc`

Robert Cranston authored on 24/11/2025 22:09:49
Showing 1 changed files
... ...
@@ -13,3 +13,13 @@ webubuntu()
13 13
 {
14 14
   xdg-open "https://packages.ubuntu.com/search?searchon=names&section=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
+}
Browse code

Add `webdebian`, `webubuntu`

Robert Cranston authored on 24/11/2025 22:09:18
Showing 1 changed files
... ...
@@ -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&section=all&keywords=$*"
10
+}
11
+
12
+webubuntu()
13
+{
14
+  xdg-open "https://packages.ubuntu.com/search?searchon=names&section=all&keywords=$*"
15
+}
Browse code

Add `websearch`

Robert Cranston authored on 24/11/2025 22:08:42
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,5 @@
1
+websearch()
2
+{
3
+  # See <https://duckduckgo.com/bangs>.
4
+  xdg-open "https://duckduckgo.com/lite/?q=!ducky ${2+site:}$*"
5
+}