Browse code

Add `webcpp`, `webc`

Robert Cranston authored on 24/11/2025 22:09:49
Showing 2 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
+}
... ...
@@ -7,6 +7,8 @@ Provided shell functions:
7 7
 -   `websearch [<site> [<terms>...]]`: The first [DuckDuckGo][] search result.
8 8
 -   `webdebian [<keywords>...]`: [Debian][] packages.
9 9
 -   `webubuntu [<keywords>...]`: [Ubuntu][] packages.
10
+-   `webcpp [<terms>...]`: C++ part of [cppreference][].
11
+-   `webc [<terms>...]`: C part of [cppreference][].
10 12
 
11 13
 [`dotfiles-websearch`]: https://git.rcrnstn.net/rcrnstn/dotfiles-websearch
12 14
 [dotfile]: https://en.wikipedia.org/wiki/Hidden_file_and_hidden_directory#Unix_and_Unix-like_environments
... ...
@@ -15,6 +17,7 @@ Provided shell functions:
15 17
 [DuckDuckGo]: https://en.wikipedia.org/wiki/DuckDuckGo
16 18
 [Debian]: https://en.wikipedia.org/wiki/Debian
17 19
 [Ubuntu]: https://en.wikipedia.org/wiki/Ubuntu
20
+[cppreference]: https://en.cppreference.com/
18 21
 
19 22
 ## License
20 23