mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-06-05 05:03:16 +02:00
Revert "JShell07's local pull request"
This commit is contained in:
parent
43922c02f9
commit
663b3b4691
97 changed files with 709 additions and 2226 deletions
|
|
@ -10,12 +10,12 @@ By now you already can guess almost all aliases
|
|||
|
||||
There are two exeptions since ...
|
||||
agu = sudo Apt-Get Update - we have ...
|
||||
agug = sudo Apt-Get UpGrade - as the exceptional 4 letter alias for a single command.
|
||||
agug = sudo Apt-Get UpGrade - as the exeptional 4 letter alias for a single command.
|
||||
|
||||
afs = Apt-File Search --regexp - this has the regexp switch on without being represented in the alias, I guess this makes sense since the debian plugin has it, I never used that command.
|
||||
|
||||
Then there are the 2 other 4 letter aliases for combined commands, that are straight forward and easy to remember.
|
||||
aguu = sudo Apt-Get Update && sudo apt-get Upgrade - better then adg or not?
|
||||
agud = sudo Apt-Get Update && sudo apt-get full-upgrade
|
||||
agud = sudo Apt-Get Update && sudo apt-get Dist-upgrade
|
||||
|
||||
For a full list aliases and the functions just watch the plugins code https://github.com/robbyrussell/oh-my-zsh/blob/master/plugins/ubuntu/ubuntu.plugin.zsh, look at the comments if you want to switch from the debian plugin. Ubuntu, Mint and & co users will like the new aar function to install packages from ppas with a single command.
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@
|
|||
# https://github.com/AlexBio
|
||||
# https://github.com/dbb
|
||||
# https://github.com/Mappleconfusers
|
||||
# https://github.com/trinaldi
|
||||
# Nicolas Jonas nextgenthemes.com
|
||||
# https://github.com/loctauxphilippe
|
||||
#
|
||||
|
|
@ -21,23 +20,14 @@ compdef _ags ags='apt-get source'
|
|||
alias acp='apt-cache policy' # app
|
||||
compdef _acp acp='apt-cache policy'
|
||||
|
||||
#List all installed packages
|
||||
alias agli='apt list --installed'
|
||||
compdef _agli agli='apt list --installed'
|
||||
|
||||
# superuser operations ######################################################
|
||||
|
||||
# List available updates only
|
||||
alias aglu='sudo apt-get -u upgrade --assume-no'
|
||||
compdef _aglu aglu='sudo apt-get -u upgrade --assume-no'
|
||||
|
||||
alias afu='sudo apt-file update'
|
||||
compdef _afu afu='sudo apt-file update'
|
||||
|
||||
alias ppap='sudo ppa-purge'
|
||||
compdef _ppap ppap='sudo ppa-purge'
|
||||
|
||||
alias apg='sudo apt-get' # age - but without sudo
|
||||
alias ag='sudo apt-get' # age - but without sudo
|
||||
alias aga='sudo apt-get autoclean' # aac
|
||||
alias agb='sudo apt-get build-dep' # abd
|
||||
alias agc='sudo apt-get clean' # adc
|
||||
|
|
@ -46,12 +36,12 @@ alias agi='sudo apt-get install' # ai
|
|||
alias agp='sudo apt-get purge' # ap
|
||||
alias agr='sudo apt-get remove' # ar
|
||||
alias agu='sudo apt-get update' # ad
|
||||
alias agud='sudo apt-get update && sudo apt-get full-upgrade' #adu
|
||||
alias agud='sudo apt-get update && sudo apt-get dist-upgrade' #adu
|
||||
alias agug='sudo apt-get upgrade' # ag
|
||||
alias aguu='sudo apt-get update && sudo apt-get upgrade' #adg
|
||||
alias agar='sudo apt-get autoremove'
|
||||
|
||||
compdef _ag apg='sudo apt-get'
|
||||
compdef _ag ag='sudo apt-get'
|
||||
compdef _aga aga='sudo apt-get autoclean'
|
||||
compdef _agb agb='sudo apt-get build-dep'
|
||||
compdef _agc agc='sudo apt-get clean'
|
||||
|
|
@ -60,7 +50,7 @@ compdef _agi agi='sudo apt-get install'
|
|||
compdef _agp agp='sudo apt-get purge'
|
||||
compdef _agr agr='sudo apt-get remove'
|
||||
compdef _agu agu='sudo apt-get update'
|
||||
compdef _agud agud='sudo apt-get update && sudo apt-get full-upgrade'
|
||||
compdef _agud agud='sudo apt-get update && sudo apt-get dist-upgrade'
|
||||
compdef _agug agug='sudo apt-get upgrade'
|
||||
compdef _aguu aguu='sudo apt-get update && sudo apt-get upgrade'
|
||||
compdef _agar agar='sudo apt-get autoremove'
|
||||
|
|
@ -79,7 +69,7 @@ alias mydeb='time dpkg-buildpackage -rfakeroot -us -uc'
|
|||
# apt-add-repository with automatic install/upgrade of the desired package
|
||||
# Usage: aar ppa:xxxxxx/xxxxxx [packagename]
|
||||
# If packagename is not given as 2nd argument the function will ask for it and guess the default by taking
|
||||
# the part after the / from the ppa name which is sometimes the right name for the package you want to install
|
||||
# the part after the / from the ppa name wich is sometimes the right name for the package you want to install
|
||||
aar() {
|
||||
if [ -n "$2" ]; then
|
||||
PACKAGE=$2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue