Suggest brew link --overwrite --dry-run when relevant

This makes it easier to see which files would be overwritten by
`brew link --overwrite`
This commit is contained in:
Joseph Frazier
2016-09-30 15:31:25 -04:00
parent 9660ec7813
commit bb5c7c576f
3 changed files with 53 additions and 0 deletions
+1
View File
@@ -238,6 +238,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`;
* `brew_install` – fixes formula name for `brew install`;
* `brew_link` – adds `--overwrite --dry-run` if linking fails
* `brew_unknown_command` – fixes wrong brew commands, for example `brew docto/brew doctor`;
* `brew_update_formula` &ndash; turns `brew update <formula>` into `brew upgrade <formula>`;
* `brew_upgrade` &ndash; appends `--all` to `brew upgrade` as per Homebrew's new behaviour;