diff --git a/docs/Tips-N'-Tricks.md b/docs/Tips-N'-Tricks.md index 2f870bd132..0e4cd4af3b 100644 --- a/docs/Tips-N'-Tricks.md +++ b/docs/Tips-N'-Tricks.md @@ -65,8 +65,32 @@ The beer emoji can also be replaced with other character(s): export HOMEBREW_INSTALL_BADGE="☕️ 🐸" ``` +## Migrate a Homebrew installation to a new location + +Run `brew bundle dump` and `brew bundle install` record an installation to and install from a `Brewfile`. See `brew bundle --help` for more details. + +## Appoint Homebrew Cask to manage a manually-installed app + +Run `brew install --cask` with the `--adopt` switch: + +```console +$ brew install --cask --adopt textmate +==> Downloading https://github.com/textmate/textmate/releases/download/v2.0.23/TextMate_2.0.23.tbz +... +==> Installing Cask textmate +==> Adopting existing App at '/Applications/TextMate.app' +==> Linking Binary 'mate' to '/opt/homebrew/bin/mate' +🍺 textmate was successfully installed! +``` + ## Editor plugins +### Visual Studio Code + +- [Brewfile](https://marketplace.visualstudio.com/items?itemName=sharat.vscode-brewfile) adds Ruby syntax highlighting for [Homebrew Bundle](https://github.com/Homebrew/homebrew-bundle) `Brewfile`s. + +- [Brew Services](https://marketplace.visualstudio.com/items?itemName=beauallison.brew-services) is an extension for starting and stopping Homebrew services. + ### Sublime Text - [Homebrew-formula-syntax](https://github.com/samueljohn/Homebrew-formula-syntax) can be installed with Package Control in Sublime Text 2/3, which adds highlighting for inline patches.