diff options
| author | LittleboyHarry <littleboyharry@qq.com> | 2022-08-10 17:58:19 +0800 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-10 11:58:19 +0200 | 
| commit | ff2b0e48aef19655316eb9d52b893bd713eb0759 (patch) | |
| tree | ecd30e1746842f14b684f592c990a94d1e7c4dee /plugins/debian | |
| parent | 97134d1eed19b72a9c4bf90a2effa847221608bf (diff) | |
| download | zsh-ff2b0e48aef19655316eb9d52b893bd713eb0759.tar.gz zsh-ff2b0e48aef19655316eb9d52b893bd713eb0759.tar.bz2 zsh-ff2b0e48aef19655316eb9d52b893bd713eb0759.zip  | |
fix(debian): remove aptitude-only `-P` flag (#11053)
Diffstat (limited to 'plugins/debian')
| -rw-r--r-- | plugins/debian/debian.plugin.zsh | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/debian/debian.plugin.zsh b/plugins/debian/debian.plugin.zsh index e4db8fe33..f649a5b16 100644 --- a/plugins/debian/debian.plugin.zsh +++ b/plugins/debian/debian.plugin.zsh @@ -89,22 +89,22 @@ else      alias afu="su -lc '$apt-file update'"      alias au="su -lc '$apt_pref $apt_upgr' root"      function ai() { -        cmd="su -lc 'aptitude -P install $@' root" +        cmd="su -lc '$apt_pref install $@' root"          print "$cmd"          eval "$cmd"      }      function ap() { -        cmd="su -lc '$apt_pref -P purge $@' root" +        cmd="su -lc '$apt_pref purge $@' root"          print "$cmd"          eval "$cmd"      }      function ar() { -        cmd="su -lc '$apt_pref -P remove $@' root" +        cmd="su -lc '$apt_pref remove $@' root"          print "$cmd"          eval "$cmd"      }      function aar() { -        cmd="su -lc '$apt_pref -P autoremove $@' root" +        cmd="su -lc '$apt_pref autoremove $@' root"          print "$cmd"          eval "$cmd"      }  | 
