1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-11 08:20:09 +00:00
ohmyzsh/plugins/ubuntu/readme.md

22 lines
1.6 KiB
Markdown
Raw Normal View History

2015-02-17 06:36:23 +00:00
This plugin was created because the aliases in the debian plugin are inconsistent and hard to remember. Also this apt-priority detection 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.
2015-02-17 06:27:38 +00:00
acs = **a**pt-**c**ache **s**earch
acp = **a**pt-**c**ache **p**olicy
ag = sudo **a**pt-**g**et
agi = sudo **a**pt-**g**et **i**nstall
agd = sudo **a**pt-**g**et **d**select-upgrade
By now you already can guess almost all aliases
There are two exeptions since ...
agu = sudo **a**pt-**g**et **u**pdate - we have ...
2015-02-17 06:48:01 +00:00
agug = sudo **a**pt-**g**et **u**p**g**rade - as the exeptional 4 letter alias for a single command.
2015-02-17 06:27:38 +00:00
afs = **a**pt-**f**ile **s**earch --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 **a**pt-**g**et **u**pdate && sudo apt-get **u**pgrade - better then adg or not?
agud = sudo **a**pt-**g**et **u**pdate && sudo apt-get **d**ist-upgrade
2015-02-17 06:49:55 +00:00
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.