diff options
Diffstat (limited to 'Library')
| -rwxr-xr-x | Library/Contributions/cmd/brew-linkapps.rb | 4 | ||||
| -rw-r--r-- | Library/Contributions/manpages/brew.1.md | 8 |
2 files changed, 10 insertions, 2 deletions
diff --git a/Library/Contributions/cmd/brew-linkapps.rb b/Library/Contributions/cmd/brew-linkapps.rb index 41f1459a2..571aedc73 100755 --- a/Library/Contributions/cmd/brew-linkapps.rb +++ b/Library/Contributions/cmd/brew-linkapps.rb @@ -1,7 +1,7 @@ -# Links any Applications (.app) found in installed prefixes to ~/Applications +# Links any Applications (.app) found in installed prefixes to /Applications require 'keg' -TARGET_DIR = ARGV.include?("--system") ? "/Applications" : File.expand_path("~/Applications") +TARGET_DIR = ARGV.include?("--local") ? File.expand_path("~/Applications") : "/Applications" unless File.exist? TARGET_DIR opoo "#{TARGET_DIR} does not exist, stopping." diff --git a/Library/Contributions/manpages/brew.1.md b/Library/Contributions/manpages/brew.1.md index e2b94821e..2fff4801e 100644 --- a/Library/Contributions/manpages/brew.1.md +++ b/Library/Contributions/manpages/brew.1.md @@ -220,6 +220,14 @@ Note that these flags should only appear after a command. If `--force` is passed, Homebrew will allow keg-only formulae to be linked. + * `linkapps [--local]`: + Find all installed formulae that have compiled `.app`-style "application" + packages for OS X, and symlink those apps into `/Applications`, allowing + for easier access. + + If provided, `--local` will move them into the user's `~/Applications` + folder instead of the system folder. It may need to be created, first. + * `ls, list [--unbrewed] [--versions] [--pinned]` [<formulae>]: Without any arguments, list all installed formulae. |
