mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-19 21:41:07 +01:00
added apt-get autoremove in ubuntu plugin
I use that command a lot of times, and there's no shortcut for that. Now it does :)
This commit is contained in:
parent
192de6bcff
commit
aaf5c8f43f
1 changed files with 3 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
||||||
# https://github.com/dbb
|
# https://github.com/dbb
|
||||||
# https://github.com/Mappleconfusers
|
# https://github.com/Mappleconfusers
|
||||||
# Nicolas Jonas nextgenthemes.com
|
# Nicolas Jonas nextgenthemes.com
|
||||||
|
# https://github.com/loctauxphilippe
|
||||||
#
|
#
|
||||||
# Debian, Ubuntu and friends related zsh aliases and functions for zsh
|
# Debian, Ubuntu and friends related zsh aliases and functions for zsh
|
||||||
|
|
||||||
|
@ -38,6 +39,7 @@ alias agu='sudo apt-get update' # ad
|
||||||
alias agud='sudo apt-get update && sudo apt-get dist-upgrade' #adu
|
alias agud='sudo apt-get update && sudo apt-get dist-upgrade' #adu
|
||||||
alias agug='sudo apt-get upgrade' # ag
|
alias agug='sudo apt-get upgrade' # ag
|
||||||
alias aguu='sudo apt-get update && sudo apt-get upgrade' #adg
|
alias aguu='sudo apt-get update && sudo apt-get upgrade' #adg
|
||||||
|
alias agar='sudo apt-get autoremove'
|
||||||
|
|
||||||
compdef _ag ag='sudo apt-get'
|
compdef _ag ag='sudo apt-get'
|
||||||
compdef _aga aga='sudo apt-get autoclean'
|
compdef _aga aga='sudo apt-get autoclean'
|
||||||
|
@ -51,6 +53,7 @@ compdef _agu agu='sudo apt-get update'
|
||||||
compdef _agud agud='sudo apt-get update && sudo apt-get dist-upgrade'
|
compdef _agud agud='sudo apt-get update && sudo apt-get dist-upgrade'
|
||||||
compdef _agug agug='sudo apt-get upgrade'
|
compdef _agug agug='sudo apt-get upgrade'
|
||||||
compdef _aguu aguu='sudo apt-get update && sudo apt-get upgrade'
|
compdef _aguu aguu='sudo apt-get update && sudo apt-get upgrade'
|
||||||
|
compdef _agar agar='sudo apt-get autoremove'
|
||||||
|
|
||||||
# Remove ALL kernel images and headers EXCEPT the one in use
|
# Remove ALL kernel images and headers EXCEPT the one in use
|
||||||
alias kclean='sudo aptitude remove -P ?and(~i~nlinux-(ima|hea) \
|
alias kclean='sudo aptitude remove -P ?and(~i~nlinux-(ima|hea) \
|
||||||
|
|
Loading…
Reference in a new issue