1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-12 00:40:07 +00:00

Fix su commands

This commit is contained in:
Daniel Bolton 2011-08-06 15:41:52 -04:00
parent 749feb2720
commit fd55d53eb2

View file

@ -15,9 +15,9 @@ alias apsrc='apt-get source'
alias apv='apt-cache policy'
# aliases that use su -c ##############
alias apdg='su -c "aptitude update && aptitude safe-upgrade"'
alias apud='su -c "aptitude update"'
alias apug='su -c "aptitude safe-upgrade"'
alias apdg='su -lc "aptitude update && aptitude safe-upgrade" root'
alias apud='su -lc "aptitude update" root'
alias apug='su -lc "aptitude safe-upgrade" root'
# end aliases that use su -c ##########
# aliases that use sudo ###############
@ -36,13 +36,13 @@ alias allpkgs='aptitude search -F "%p" --disable-columns ~i'
# Install all .deb files in the current directory.
# Warning: you will need to put the glob in single quotes if you use:
# glob_subst
alias di='su -c "dpkg -i ./*.deb"'
alias di='su -lc "dpkg -i ./*.deb" root'
# Create a basic .deb package
alias mydeb='time dpkg-buildpackage -rfakeroot -us -uc'
# Remove ALL kernel images and headers EXCEPT the one in use
alias kclean='su -c '\''aptitude remove -P ?and(~i~nlinux-(ima|hea) ?not(~n`uname -r`))'\'' root'
alias kclean='su -lc '\''aptitude remove -P ?and(~i~nlinux-(ima|hea) ?not(~n`uname -r`))'\'' root'
@ -81,4 +81,3 @@ kerndeb () {
"$revision" kernel_image kernel_headers
}