diff options
author | Braxton Schafer <braxton@epic.com> | 2019-09-03 14:15:13 -0500 |
---|---|---|
committer | Braxton Schafer <braxton@epic.com> | 2019-09-03 14:15:13 -0500 |
commit | b3d3ce8aa604aecc52c132a9d67e075b0ca64722 (patch) | |
tree | 1abd7f076a241c9dd10b564450127de05ad42f2a /plugins | |
parent | 15dd77055e2b4a931d50ad3e05f823893aac66af (diff) | |
download | zsh-b3d3ce8aa604aecc52c132a9d67e075b0ca64722.tar.gz zsh-b3d3ce8aa604aecc52c132a9d67e075b0ca64722.tar.bz2 zsh-b3d3ce8aa604aecc52c132a9d67e075b0ca64722.zip |
Fix bad function definitions in Debian plugin
There appears to be a definition issue for some functions/aliases which
result in the following errors when sourcing .zshrc:
```
/home/username/.oh-my-zsh/plugins/debian/debian.plugin.zsh:75: defining function based on alias `abd'
/home/username/.oh-my-zsh/plugins/debian/debian.plugin.zsh:75: parse error near `()'
```
Fixes #7986
Diffstat (limited to 'plugins')
-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 be4062ebf..dd80485d0 100644 --- a/plugins/debian/debian.plugin.zsh +++ b/plugins/debian/debian.plugin.zsh @@ -72,7 +72,7 @@ if [[ $use_sudo -eq 1 ]]; then # commands using su ######### else alias aac="su -ls '$apt_pref autoclean' root" - abd() { + function abd() { cmd="su -lc '$apt_pref build-dep $@' root" print "$cmd" eval "$cmd" @@ -83,17 +83,17 @@ else alias adu="su -lc '$apt_pref update && aptitude dist-upgrade' root" alias afu="su -lc '$apt-file update'" alias au="su -lc '$apt_pref $apt_upgr' root" - ai() { + function ai() { cmd="su -lc 'aptitude -P install $@' root" print "$cmd" eval "$cmd" } - ap() { + function ap() { cmd="su -lc '$apt_pref -P purge $@' root" print "$cmd" eval "$cmd" } - ar() { + function ar() { cmd="su -lc '$apt_pref -P remove $@' root" print "$cmd" eval "$cmd" |