mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-04-24 04:29:25 +02:00
Remove clashing with 'ag' (the_silver_searcher)
This plugin define an alias named 'ag'. However, on Ubuntu systems, when you install the_silver_searcher it is automatically installed as `/usr/bin/ag`. This patch changed the alias from 'ag' (`sudo apt-get update`) to 'sag' to avoid name clashing. Other aliases are updated accordingly. Signed-off-by: Michele Bologna <michele.bologna@gmail.com>
This commit is contained in:
parent
3ce22281db
commit
e4237f436b
2 changed files with 42 additions and 42 deletions
|
|
@ -3,19 +3,19 @@ This plugin was created because the aliases in the debian plugin are inconsisten
|
|||
acs = Apt-Cache Search
|
||||
acp = Apt-Cache Policy
|
||||
|
||||
ag = sudo Apt-Get
|
||||
agi = sudo Apt-Get Install
|
||||
agd = sudo Apt-Get Dselect-upgrade
|
||||
sag = sudo Apt-Get
|
||||
sagi = sudo Apt-Get Install
|
||||
sagd = 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.
|
||||
sagu = sudo Apt-Get Update - we have ...
|
||||
sagug = 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
|
||||
saguu = sudo Apt-Get Update && sudo apt-get Upgrade - better then adg or not?
|
||||
sagud = 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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue