5bfdd0356b46dc711a8f0866eeb9b717c033d5b2

Author
Haltarys <45515869+Haltarys@users.noreply.github.com>
Committer
GitHub <noreply@github.com>
Date

Message

fix(ubuntu)!: rename `acs` alias to `acse (#11334)

BREAKING CHANGE: `acs` alias, present in both `ubuntu` and `debian` plugins conflicts with `acs` function in aliases plugin. Change it to prevent ghosting of one of them.

Diff

 1diff --git a/plugins/debian/README.md b/plugins/debian/README.md
 2index 1db534f1366517b1c408d5da4222bc90d4bafe03..c1ebe1c50143ac99c5d772b0cbd26c9b300f9eb3 100644
 3--- a/plugins/debian/README.md
 4+++ b/plugins/debian/README.md
 5@@ -21,7 +21,7 @@ Set `$apt_pref` and `$apt_upgr` to whatever command you want (before sourcing Oh
 6 | ------ | ---------------------------------------------------------------------- | ---------------------------------------------------------- |
 7 | `age`  | `apt-get`                                                              | Command line tool for handling packages                    |
 8 | `api`  | `aptitude`                                                             | Same functionality as `apt-get`, provides extra options    |
 9-| `acs`  | `apt-cache search`                                                     | Command line tool for searching apt software package cache |
10+| `acse` | `apt-cache search`                                                     | Command line tool for searching apt software package cache |
11 | `aps`  | `aptitude search`                                                      | Searches installed packages using aptitude                 |
12 | `as`   | `aptitude -F '* %p -> %d \n(%v/%V)' --no-gui --disable-columns search` | Print searched packages using a custom format              |
13 | `afs`  | `apt-file search --regexp`                                             | Search file in packages                                    |
14diff --git a/plugins/debian/debian.plugin.zsh b/plugins/debian/debian.plugin.zsh
15index 2d8c4666ecd7333a33e420da89eb2a363c3330a0..bab1ae1c60a7dad14679b6983c65ec0da7b55165 100644
16--- a/plugins/debian/debian.plugin.zsh
17+++ b/plugins/debian/debian.plugin.zsh
18@@ -26,7 +26,7 @@ alias age='apt-get'
19 alias api='aptitude'
20 
21 # Some self-explanatory aliases
22-alias acs="apt-cache search"
23+alias acse="apt-cache search"
24 alias aps='aptitude search'
25 alias as="aptitude -F '* %p -> %d \n(%v/%V)' --no-gui --disable-columns search"
26 
27@@ -51,7 +51,7 @@ if [[ $use_sudo -eq 1 ]]; then
28     alias au="sudo $apt_pref $apt_upgr"
29     alias ai="sudo $apt_pref install"
30     # Install all packages given on the command line while using only the first word of each line:
31-    # acs ... | ail
32+    # acse ... | ail
33 
34     alias ail="sed -e 's/  */ /g' -e 's/ *//' | cut -s -d ' ' -f 1 | xargs sudo $apt_pref install"
35     alias ap="sudo $apt_pref purge"
36diff --git a/plugins/ubuntu/README.md b/plugins/ubuntu/README.md
37index 20f5c65ee747b66558068a38f10225a4d86fee1b..2401c102ba0594e2dbdde4748293aad31e753630 100644
38--- a/plugins/ubuntu/README.md
39+++ b/plugins/ubuntu/README.md
40@@ -15,7 +15,7 @@ Commands that use `$APT` will use `apt` if installed or defer to `apt-get` other
41 | Alias   | Command                                                                  | Description                                                                                       |
42 |---------|--------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------|
43 | age     | `sudo $APT`                                                              | Run apt-get with sudo                                                                             |
44-| acs     | `apt-cache search`                                                       | Search the apt-cache with the specified criteria                                                  |
45+| acse    | `apt-cache search`                                                       | Search the apt-cache with the specified criteria                                                  |
46 | acsp    | `apt-cache showpkg`                                                      | Shows information about the listed packages                                                       |
47 | acp     | `apt-cache policy`                                                       | Display the package source priorities                                                             |
48 | afs     | `apt-file search --regexp`                                               | Perform a regular expression apt-file search                                                      |
49diff --git a/plugins/ubuntu/ubuntu.plugin.zsh b/plugins/ubuntu/ubuntu.plugin.zsh
50index 7b765a40649d1327de52ae7967ee4ccda9347dff..4d35da2ac5754758fa6d57986d2ce171bcab8682 100644
51--- a/plugins/ubuntu/ubuntu.plugin.zsh
52+++ b/plugins/ubuntu/ubuntu.plugin.zsh
53@@ -1,6 +1,6 @@
54 (( $+commands[apt] )) && APT=apt || APT=apt-get
55 
56-alias acs='apt-cache search'
57+alias acse='apt-cache search'
58 
59 alias afs='apt-file search --regexp'
60