Add apt_upgrade rule (#761)

* apt_list_upgradable: Prepend sudo to suggestion if used in command

* Add apt_upgrade rule

This suggests `apt upgrade` after `apt list --upgradable` if there are
packages to upgrade. It pairs well with the `apt_list_upgradable` rule,
which suggests `apt list --upgradable` after `apt update` if there are
packages to upgrade.

* Add apt_upgrade rule to README
This commit is contained in:
Joseph Frazier
2018-01-03 13:01:09 -05:00
committed by Vladimir Iakovlev
parent 7e6d1dbc7c
commit a696461cd3
5 changed files with 57 additions and 0 deletions
+1
View File
@@ -283,6 +283,7 @@ Enabled by default only on specific platforms:
* `apt_get_search` – changes trying to search using `apt-get` with searching using `apt-cache`;
* `apt_invalid_operation` – fixes invalid `apt` and `apt-get` calls, like `apt-get isntall vim`;
* `apt_list_upgradable` – helps you run `apt list --upgradable` after `apt update`;
* `apt_upgrade` – helps you run `apt upgrade` after `apt list --upgradable`;
* `brew_cask_dependency` – installs cask dependencies;
* `brew_install` – fixes formula name for `brew install`;
* `brew_link` – adds `--overwrite --dry-run` if linking fails;