Commit fd55d53e authored by Daniel Bolton's avatar Daniel Bolton
Browse files

Fix su commands

parent 749feb27
...@@ -15,9 +15,9 @@ alias apsrc='apt-get source' ...@@ -15,9 +15,9 @@ alias apsrc='apt-get source'
alias apv='apt-cache policy' alias apv='apt-cache policy'
# aliases that use su -c ############## # aliases that use su -c ##############
alias apdg='su -c "aptitude update && aptitude safe-upgrade"' alias apdg='su -lc "aptitude update && aptitude safe-upgrade" root'
alias apud='su -c "aptitude update"' alias apud='su -lc "aptitude update" root'
alias apug='su -c "aptitude safe-upgrade"' alias apug='su -lc "aptitude safe-upgrade" root'
# end aliases that use su -c ########## # end aliases that use su -c ##########
# aliases that use sudo ############### # aliases that use sudo ###############
...@@ -36,13 +36,13 @@ alias allpkgs='aptitude search -F "%p" --disable-columns ~i' ...@@ -36,13 +36,13 @@ alias allpkgs='aptitude search -F "%p" --disable-columns ~i'
# Install all .deb files in the current directory. # Install all .deb files in the current directory.
# Warning: you will need to put the glob in single quotes if you use: # Warning: you will need to put the glob in single quotes if you use:
# glob_subst # glob_subst
alias di='su -c "dpkg -i ./*.deb"' alias di='su -lc "dpkg -i ./*.deb" root'
# Create a basic .deb package # Create a basic .deb package
alias mydeb='time dpkg-buildpackage -rfakeroot -us -uc' alias mydeb='time dpkg-buildpackage -rfakeroot -us -uc'
# Remove ALL kernel images and headers EXCEPT the one in use # 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 () { ...@@ -81,4 +81,3 @@ kerndeb () {
"$revision" kernel_image kernel_headers "$revision" kernel_image kernel_headers
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment