Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
fd55d53e
Commit
fd55d53e
authored
Aug 06, 2011
by
Daniel Bolton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix su commands
parent
749feb27
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
debian.plugin.zsh
plugins/debian/debian.plugin.zsh
+5
-6
No files found.
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 -
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 -
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