Browse code

Add `webdebian`, `webubuntu`

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