0aa4456d5657c957eaf0c54f6eb24e58b9149d4b
- Author
- mapc <musikmichael@web.de>
- Committer
- mapc <musikmichael@web.de>
- Date
Message
Add completion instructions for apt/aptitude commands
Diff
1diff --git a/plugins/debian/debian.plugin.zsh b/plugins/debian/debian.plugin.zsh
2index 39d3ef36a05280e9e285412afecba861278bd73c..22803ee1b84407e640233221cde716ad0e5de814 100644
3--- a/plugins/debian/debian.plugin.zsh
4+++ b/plugins/debian/debian.plugin.zsh
5@@ -107,6 +107,20 @@ else
6 ?not(~n`uname -r`))'\'' root'
7 fi
8
9+# Completion ################################################################
10+
11+# TODO: These definitions won't change between apt-get and uptitude automaticaly
12+compdef _apt aac="$apt_pref autoclean"
13+compdef _apt abd="$apt_pref build-dep"
14+compdef _apt ac="$apt_pref clean"
15+compdef _apt ad="$apt_pref update"
16+compdef _apt afu="$apt_pref update"
17+compdef _apt ag="$apt_pref upgrade"
18+compdef _apt ai="$apt_pref install"
19+compdef _apt ail="$apt_pref install"
20+compdef _apt ap="$apt_pref purge"
21+compdef _apt ar="$apt_pref remove"
22+compdef _apt ads="apt-get dselect-upgrade"
23
24 # Misc. #####################################################################
25 # print all installed packages