aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/keg.rb
diff options
context:
space:
mode:
authorMike McQuaid2016-12-08 08:55:00 +0000
committerGitHub2016-12-08 08:55:00 +0000
commit276d00938cd6ea47fc07af27b96755651bb85626 (patch)
tree75897a3fbcad22d805670a4000fc81fdef3756bd /Library/Homebrew/keg.rb
parentba14f87825b969294176e846fae96b7fab9e5b91 (diff)
parent1995f653086ec0b4ab56618105c5678331949106 (diff)
downloadbrew-276d00938cd6ea47fc07af27b96755651bb85626.tar.bz2
Merge pull request #1615 from zachwhaley/fish_functions
Add a method for installing fish function files
Diffstat (limited to 'Library/Homebrew/keg.rb')
-rw-r--r--Library/Homebrew/keg.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Homebrew/keg.rb b/Library/Homebrew/keg.rb
index f1275e748..b3d88ea63 100644
--- a/Library/Homebrew/keg.rb
+++ b/Library/Homebrew/keg.rb
@@ -303,6 +303,11 @@ class Keg
dir && dir.directory? && !dir.children.empty?
end
+ def fish_functions_installed?
+ dir = path.join("share", "fish", "vendor_functions.d")
+ dir && dir.directory? && !dir.children.empty?
+ end
+
def plist_installed?
!Dir["#{path}/*.plist"].empty?
end