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
b38da62b
Unverified
Commit
b38da62b
authored
Dec 29, 2021
by
Shahed Hosseini
Committed by
GitHub
Dec 29, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(debian): add `aar` alias for autoremove (#7869)
parent
d384ccf3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
debian.plugin.zsh
plugins/debian/debian.plugin.zsh
+8
-1
No files found.
plugins/debian/debian.plugin.zsh
View file @
b38da62b
...
...
@@ -52,9 +52,11 @@ if [[ $use_sudo -eq 1 ]]; then
alias
ai
=
"sudo
$apt_pref
install"
# Install all packages given on the command line while using only the first word of each line:
# acs ... | ail
alias
ail
=
"sed -e 's/ */ /g' -e 's/ *//' | cut -s -d ' ' -f 1 | xargs sudo
$apt_pref
install"
alias
ap
=
"sudo
$apt_pref
purge"
alias
ar
=
"sudo
$apt_pref
remove"
alias
aar
=
"sudo
$apt_pref
autoremove"
# apt-get only
alias
ads
=
"sudo apt-get dselect-upgrade"
...
...
@@ -98,7 +100,11 @@ else
print
"
$cmd
"
eval
"
$cmd
"
}
aar
()
{
cmd
=
"su -lc '
$apt_pref
-P autoremove
$@
' root"
print
"
$cmd
"
eval
"
$cmd
"
}
# Install all .deb files in the current directory
# Assumes glob_subst is off
alias
dia
=
'su -lc "dpkg -i ./*.deb" root'
...
...
@@ -139,6 +145,7 @@ apt_pref_compdef ai "install"
apt_pref_compdef ail
"install"
apt_pref_compdef ap
"purge"
apt_pref_compdef ar
"remove"
apt_pref_compdef aar
"autoremove"
apt_pref_compdef ads
"dselect-upgrade"
# Misc. #####################################################################
...
...
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