Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
fd55d53e
Commit
fd55d53e
authored
Aug 06, 2011
by
Daniel Bolton
Browse files
Fix su commands
parent
749feb27
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/debian/debian.plugin.zsh
View file @
fd55d53e
...
...
@@ -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 -
l
c "aptitude update && aptitude safe-upgrade"
root
'
alias
apud
=
'su -
l
c "aptitude update"
root
'
alias
apug
=
'su -
l
c "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 -
l
c "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 -
l
c '
\'
'aptitude remove -P ?and(~i~nlinux-(ima|hea) ?not(~n`uname -r`))'
\'
' root'
...
...
@@ -81,4 +81,3 @@ kerndeb () {
"
$revision
"
kernel_image kernel_headers
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment