1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-12-22 12:21:58 +00:00
ohmyzsh/plugins/ubuntu
2015-02-17 07:27:38 +01:00
..
readme.md Create readme.md 2015-02-17 07:27:38 +01:00

This plugin was created because the aliases in the debian plugin are inconsistent and hard to remember. Also this apt-priority detaction that switched between apt-get and aptitude was dropped to keep it simpler. This plugin uses apt-get for everything but a few things that are only possible with aptitude I guess. Ubuntu does not have aptitude installed by default.

The aliases for this plugin are easy to remember because they are consistent (the debian plugin is not).

acs = apt-cache search
acp = apt-cache policy

ag = sudo apt-get
agi = sudo apt-get install
agd = sudo apt-get dselect-upgrade
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 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 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/debian/debian.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.