formula: Add convenience method for installing Zsh functions

This commit is contained in:
Zach Whaley 2016-12-08 07:20:40 -06:00
parent 276d00938c
commit 95688cd72e

View File

@ -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