From 0d7fc5eaff23ad26cec541467964d5ed521a01dc Mon Sep 17 00:00:00 2001 From: Noah Vesely Date: Wed, 2 Dec 2015 09:45:35 -0800 Subject: [PATCH] Avoid upgrade name conflict with the_silver_search [`ag`](https://github.com/ggreer/the_silver_searcher) is a pretty popular `grep` alternative. To avoid name conflicts the upgrade alias here should be changed to `au`. I ran `apt-file search -x /bin/au$` and confirmed that Debian, in it's 40,000 or so packages, does not provide an `au` executable. Plus, `au` is better mnemonic for `apt-get`/`aptitude` `upgrade`/`safe-upgrade` than `ag`. --- plugins/debian/debian.plugin.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/debian/debian.plugin.zsh b/plugins/debian/debian.plugin.zsh index 31a772d6..671e2668 100644 --- a/plugins/debian/debian.plugin.zsh +++ b/plugins/debian/debian.plugin.zsh @@ -50,7 +50,7 @@ if [[ $use_sudo -eq 1 ]]; then alias adg='sudo $apt_pref update && sudo $apt_pref $apt_upgr' alias adu='sudo $apt_pref update && sudo $apt_pref dist-upgrade' alias afu='sudo apt-file update' - alias ag='sudo $apt_pref $apt_upgr' + alias au='sudo $apt_pref $apt_upgr' alias ai='sudo $apt_pref install' # Install all packages given on the command line while using only the first word of each line: # acs ... | ail @@ -85,7 +85,7 @@ else alias adg='su -lc \'$apt_pref update && aptitude $apt_upgr\' root' alias adu='su -lc \'$apt_pref update && aptitude dist-upgrade\' root' alias afu='su -lc "apt-file update"' - alias ag='su -lc \'$apt_pref $apt_upgr\' root' + alias au='su -lc \'$apt_pref $apt_upgr\' root' ai() { cmd="su -lc 'aptitude -P install $@' root" print "$cmd"