ff2b0e48aef19655316eb9d52b893bd713eb0759
- Author
- LittleboyHarry <littleboyharry@qq.com>
- Committer
- GitHub <noreply@github.com>
- Date
Message
fix(debian): remove aptitude-only `-P` flag (#11053)
Diff
1diff --git a/plugins/debian/debian.plugin.zsh b/plugins/debian/debian.plugin.zsh
2index e4db8fe339540115a93a48a866b1ba71f0c49375..f649a5b164ced650009fa47447a17ca02630ff44 100644
3--- a/plugins/debian/debian.plugin.zsh
4+++ b/plugins/debian/debian.plugin.zsh
5@@ -89,22 +89,22 @@ else
6 alias afu="su -lc '$apt-file update'"
7 alias au="su -lc '$apt_pref $apt_upgr' root"
8 function ai() {
9- cmd="su -lc 'aptitude -P install $@' root"
10+ cmd="su -lc '$apt_pref install $@' root"
11 print "$cmd"
12 eval "$cmd"
13 }
14 function ap() {
15- cmd="su -lc '$apt_pref -P purge $@' root"
16+ cmd="su -lc '$apt_pref purge $@' root"
17 print "$cmd"
18 eval "$cmd"
19 }
20 function ar() {
21- cmd="su -lc '$apt_pref -P remove $@' root"
22+ cmd="su -lc '$apt_pref remove $@' root"
23 print "$cmd"
24 eval "$cmd"
25 }
26 function aar() {
27- cmd="su -lc '$apt_pref -P autoremove $@' root"
28+ cmd="su -lc '$apt_pref autoremove $@' root"
29 print "$cmd"
30 eval "$cmd"
31 }