aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZach Whaley2016-12-08 07:20:40 -0600
committerZach Whaley2016-12-08 07:23:26 -0600
commit95688cd72e318fca1cb2a0652e48c5d4db5a1466 (patch)
treefe2ac2626e16bfb169d36c3178e821c12e91ce20
parent276d00938cd6ea47fc07af27b96755651bb85626 (diff)
downloadbrew-95688cd72e318fca1cb2a0652e48c5d4db5a1466.tar.bz2
formula: Add convenience method for installing Zsh functions
-rw-r--r--Library/Homebrew/formula.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 3f2653e4a..bfaa41ad3 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -778,6 +778,14 @@ class Formula
HOMEBREW_PREFIX+"var"
end
+ # The directory where the formula's ZSH function files should be
+ # installed.
+ # This is symlinked into `HOMEBREW_PREFIX` after installation or with
+ # `brew link` for formulae that are not keg-only.
+ def zsh_function
+ share+"zsh/site-functions"
+ end
+
# The directory where the formula's fish function files should be
# installed.
# This is symlinked into `HOMEBREW_PREFIX` after installation or with