1
0
mirror of https://github.com/robbyrussell/oh-my-zsh.git synced 2025-12-06 07:20:40 +01:00

fix(debian)!: remove ar alias

BREAKING CHANGE: This alias needs to be removed because is shadowing
`ar` archiver.

Closes #9304
This commit is contained in:
Carlo Sala
2022-10-01 11:21:19 +02:00
committed by Marc Cornellà
parent 65a1e4edbe
commit 818f3de1fa
2 changed files with 19 additions and 27 deletions

View File

@@ -55,7 +55,6 @@ if [[ $use_sudo -eq 1 ]]; then
alias ail="sed -e 's/ */ /g' -e 's/ *//' | cut -s -d ' ' -f 1 | xargs sudo $apt_pref install"
alias ap="sudo $apt_pref purge"
alias ar="sudo $apt_pref remove"
alias aar="sudo $apt_pref autoremove"
# apt-get only
@@ -98,11 +97,6 @@ else
print "$cmd"
eval "$cmd"
}
function ar() {
cmd="su -lc '$apt_pref remove $@' root"
print "$cmd"
eval "$cmd"
}
function aar() {
cmd="su -lc '$apt_pref autoremove $@' root"
print "$cmd"
@@ -147,7 +141,6 @@ apt_pref_compdef au "$apt_upgr"
apt_pref_compdef ai "install"
apt_pref_compdef ail "install"
apt_pref_compdef ap "purge"
apt_pref_compdef ar "remove"
apt_pref_compdef aar "autoremove"
apt_pref_compdef ads "dselect-upgrade"