summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaltarys <45515869+Haltarys@users.noreply.github.com>2022-11-11 09:49:41 +0100
committerGitHub <noreply@github.com>2022-11-11 09:49:41 +0100
commit5bfdd0356b46dc711a8f0866eeb9b717c033d5b2 (patch)
tree1020d450dbe63053be00da9a5fe02417048fff6b
parentfcbfdf42de702d55174fe2b19142ba232289671e (diff)
downloadzsh-5bfdd0356b46dc711a8f0866eeb9b717c033d5b2.tar.gz
zsh-5bfdd0356b46dc711a8f0866eeb9b717c033d5b2.tar.bz2
zsh-5bfdd0356b46dc711a8f0866eeb9b717c033d5b2.zip
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.
-rw-r--r--plugins/debian/README.md2
-rw-r--r--plugins/debian/debian.plugin.zsh4
-rw-r--r--plugins/ubuntu/README.md2
-rw-r--r--plugins/ubuntu/ubuntu.plugin.zsh2
4 files changed, 5 insertions, 5 deletions
diff --git a/plugins/debian/README.md b/plugins/debian/README.md
index 1db534f13..c1ebe1c50 100644
--- a/plugins/debian/README.md
+++ b/plugins/debian/README.md
@@ -21,7 +21,7 @@ Set `$apt_pref` and `$apt_upgr` to whatever command you want (before sourcing Oh
| ------ | ---------------------------------------------------------------------- | ---------------------------------------------------------- |
| `age` | `apt-get` | Command line tool for handling packages |
| `api` | `aptitude` | Same functionality as `apt-get`, provides extra options |
-| `acs` | `apt-cache search` | Command line tool for searching apt software package cache |
+| `acse` | `apt-cache search` | Command line tool for searching apt software package cache |
| `aps` | `aptitude search` | Searches installed packages using aptitude |
| `as` | `aptitude -F '* %p -> %d \n(%v/%V)' --no-gui --disable-columns search` | Print searched packages using a custom format |
| `afs` | `apt-file search --regexp` | Search file in packages |
diff --git a/plugins/debian/debian.plugin.zsh b/plugins/debian/debian.plugin.zsh
index 2d8c4666e..bab1ae1c6 100644
--- a/plugins/debian/debian.plugin.zsh
+++ b/plugins/debian/debian.plugin.zsh
@@ -26,7 +26,7 @@ alias age='apt-get'
alias api='aptitude'
# Some self-explanatory aliases
-alias acs="apt-cache search"
+alias acse="apt-cache search"
alias aps='aptitude search'
alias as="aptitude -F '* %p -> %d \n(%v/%V)' --no-gui --disable-columns search"
@@ -51,7 +51,7 @@ if [[ $use_sudo -eq 1 ]]; then
alias au="sudo $apt_pref $apt_upgr"
alias ai="sudo $apt_pref install"
# Install all packages given on the command line while using only the first word of each line:
- # acs ... | ail
+ # acse ... | ail
alias ail="sed -e 's/ */ /g' -e 's/ *//' | cut -s -d ' ' -f 1 | xargs sudo $apt_pref install"
alias ap="sudo $apt_pref purge"
diff --git a/plugins/ubuntu/README.md b/plugins/ubuntu/README.md
index 20f5c65ee..2401c102b 100644
--- a/plugins/ubuntu/README.md
+++ b/plugins/ubuntu/README.md
@@ -15,7 +15,7 @@ Commands that use `$APT` will use `apt` if installed or defer to `apt-get` other
| Alias | Command | Description |
|---------|--------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------|
| age | `sudo $APT` | Run apt-get with sudo |
-| acs | `apt-cache search` | Search the apt-cache with the specified criteria |
+| acse | `apt-cache search` | Search the apt-cache with the specified criteria |
| acsp | `apt-cache showpkg` | Shows information about the listed packages |
| acp | `apt-cache policy` | Display the package source priorities |
| afs | `apt-file search --regexp` | Perform a regular expression apt-file search |
diff --git a/plugins/ubuntu/ubuntu.plugin.zsh b/plugins/ubuntu/ubuntu.plugin.zsh
index 7b765a406..4d35da2ac 100644
--- a/plugins/ubuntu/ubuntu.plugin.zsh
+++ b/plugins/ubuntu/ubuntu.plugin.zsh
@@ -1,6 +1,6 @@
(( $+commands[apt] )) && APT=apt || APT=apt-get
-alias acs='apt-cache search'
+alias acse='apt-cache search'
alias afs='apt-file search --regexp'