Skip to content

Instantly share code, notes, and snippets.

@bobthecow
Created June 13, 2012 15:59
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bobthecow/2924971 to your computer and use it in GitHub Desktop.
Save bobthecow/2924971 to your computer and use it in GitHub Desktop.
brew install fishfish
require 'formula'
class Fishfish < Formula
homepage 'http://ridiculousfish.com/shell'
url 'https://github.com/fish-shell/fish-shell.git'
depends_on 'autoconf' => :build
depends_on 'readline'
skip_clean 'share/doc'
# def patches
# p = []
#
# # Fix PID and proc completion on OS X
# p << 'https://github.com/fish-shell/fish-shell/pull/129.diff'
# end
def install
system "autoconf"
system "./configure", "--prefix=#{prefix}", "--without-xsel"
system "make install"
end
def test
system "fish"
end
def caveats; <<-EOS.undent
You will need to add:
#{bin}/fish
to /etc/shells. Run:
chsh -s #{bin}/fish
to make fish your default shell.
EOS
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment