Diff
1diff --git a/plugins/debian/debian.plugin.zsh b/plugins/debian/debian.plugin.zsh
2index dd80485d03a466d7bc2bc2dd76764aa5c86756c1..68c6df1aec688a5e60a22e729ff93fc03655bc6e 100644
3--- a/plugins/debian/debian.plugin.zsh
4+++ b/plugins/debian/debian.plugin.zsh
5@@ -114,7 +114,7 @@ fi
6 # Registers a compdef for $1 that calls $apt_pref with the commands $2
7 # To do that it creates a new completion function called _apt_pref_$2
8 #
9-apt_pref_compdef() {
10+function apt_pref_compdef() {
11 local f fb
12 f="_apt_pref_${2}"
13
14@@ -151,7 +151,7 @@ alias mydeb='time dpkg-buildpackage -rfakeroot -us -uc'
15
16 # Functions #################################################################
17 # create a simple script that can be used to 'duplicate' a system
18-apt-copy() {
19+function apt-copy() {
20 print '#!/bin/sh'"\n" > apt-copy.sh
21
22 cmd='$apt_pref install'
23@@ -173,7 +173,7 @@ apt-copy() {
24 # apt-history rollback
25 # apt-history list
26 # Based On: https://linuxcommando.blogspot.com/2008/08/how-to-show-apt-log-history.html
27-apt-history () {
28+function apt-history() {
29 case "$1" in
30 install)
31 zgrep --no-filename 'install ' $(ls -rt /var/log/dpkg*)
32@@ -202,7 +202,7 @@ apt-history () {
33 }
34
35 # Kernel-package building shortcut
36-kerndeb () {
37+function kerndeb() {
38 # temporarily unset MAKEFLAGS ( '-j3' will fail )
39 MAKEFLAGS=$( print - $MAKEFLAGS | perl -pe 's/-j\s*[\d]+//g' )
40 print '$MAKEFLAGS set to '"'$MAKEFLAGS'"
41@@ -216,10 +216,9 @@ kerndeb () {
42 }
43
44 # List packages by size
45-function apt-list-packages {
46+function apt-list-packages() {
47 dpkg-query -W --showformat='${Installed-Size} ${Package} ${Status}\n' | \
48 grep -v deinstall | \
49 sort -n | \
50 awk '{print $1" "$2}'
51 }
52-