fd55d53eb22856883953bb6efc89bb2d643ef296

Author
Daniel Bolton <dbb@9y.com>
Committer
Daniel Bolton <dbb@9y.com>
Date

Message

Fix su commands

Diff

 1diff --git a/plugins/debian/debian.plugin.zsh b/plugins/debian/debian.plugin.zsh
 2index 6feb6973d92c68c19a3c45aaf687d5c1ee7cec8d..0c487cf70bf4d810fd88b31ee0a141cce91d857c 100644
 3--- a/plugins/debian/debian.plugin.zsh
 4+++ b/plugins/debian/debian.plugin.zsh
 5@@ -15,9 +15,9 @@ alias apsrc='apt-get source'
 6 alias apv='apt-cache policy'
 7 
 8 # aliases that use su -c ##############
 9-alias apdg='su -c "aptitude update && aptitude safe-upgrade"'
10-alias apud='su -c "aptitude update"'
11-alias apug='su -c "aptitude safe-upgrade"'
12+alias apdg='su -lc "aptitude update && aptitude safe-upgrade" root'
13+alias apud='su -lc "aptitude update" root'
14+alias apug='su -lc "aptitude safe-upgrade" root'
15 # end aliases that use su -c ##########
16 
17 # aliases that use sudo ###############
18@@ -36,13 +36,13 @@ alias allpkgs='aptitude search -F "%p" --disable-columns ~i'
19 # Install all .deb files in the current directory.
20 # Warning: you will need to put the glob in single quotes if you use:
21 # glob_subst
22-alias di='su -c "dpkg -i ./*.deb"'
23+alias di='su -lc "dpkg -i ./*.deb" root'
24 
25 # Create a basic .deb package
26 alias mydeb='time dpkg-buildpackage -rfakeroot -us -uc'
27 
28 # Remove ALL kernel images and headers EXCEPT the one in use
29-alias kclean='su -c '\''aptitude remove -P ?and(~i~nlinux-(ima|hea) ?not(~n`uname -r`))'\'' root'
30+alias kclean='su -lc '\''aptitude remove -P ?and(~i~nlinux-(ima|hea) ?not(~n`uname -r`))'\'' root'
31 
32 
33 
34@@ -81,4 +81,3 @@ kerndeb () {
35         "$revision" kernel_image kernel_headers
36 }
37 
38-