fix(ubuntu): fix `defining function based on alias` error (#10560)
Fixes #10560
Diff
1diff --git a/plugins/ubuntu/ubuntu.plugin.zsh b/plugins/ubuntu/ubuntu.plugin.zsh
2index 989ffd1ff866bea48bfb0021ae77d75cfc6f9150..7b765a40649d1327de52ae7967ee4ccda9347dff 100644
3--- a/plugins/ubuntu/ubuntu.plugin.zsh
4+++ b/plugins/ubuntu/ubuntu.plugin.zsh
5@@ -53,7 +53,7 @@ alias mydeb='time dpkg-buildpackage -rfakeroot -us -uc'
6 # Usage: aar ppa:xxxxxx/xxxxxx [packagename]
7 # If packagename is not given as 2nd argument the function will ask for it and guess the default by taking
8 # the part after the / from the ppa name which is sometimes the right name for the package you want to install
9-aar() {
10+function aar() {
11 if [ -n "$2" ]; then
12 PACKAGE=$2
13 else
14@@ -76,7 +76,7 @@ aar() {
15 # apt-history rollback
16 # apt-history list
17 # Based On: https://linuxcommando.blogspot.com/2008/08/how-to-show-apt-log-history.html
18-apt-history () {
19+function apt-history() {
20 case "$1" in
21 install)
22 zgrep --no-filename 'install ' $(ls -rt /var/log/dpkg*)
23@@ -105,7 +105,7 @@ apt-history () {
24 }
2526 # Kernel-package building shortcut
27-kerndeb () {
28+function kerndeb() {
29 # temporarily unset MAKEFLAGS ( '-j3' will fail )
30 MAKEFLAGS=$( print - $MAKEFLAGS | perl -pe 's/-j\s*[\d]+//g' )
31 print '$MAKEFLAGS set to '"'$MAKEFLAGS'"