├── README.md └── fs-tool.rb /README.md: -------------------------------------------------------------------------------- 1 | homebrew-fstool 2 | =============== 3 | 4 | Installation 5 | --- 6 | 7 | ```shell 8 | brew tap fs/fstool 9 | brew install fs-tool 10 | ``` 11 | 12 | You can also install via URL: 13 | 14 | ``` 15 | brew install https://raw.github.com/fs/homebrew-fstool/master/fs-tool.rb 16 | ``` 17 | 18 | Docs 19 | ---- 20 | 21 | `brew help`, `man brew`, or the Homebrew [wiki](http://wiki.github.com/mxcl/homebrew). 22 | 23 | Credits 24 | ------- 25 | 26 | homebrew-fstool is maintained by [Max Prokopiev](http://github.com/juggler). 27 | It was written by [Flatstack](http://www.flatstack.com) with the help of our 28 | [contributors](http://github.com/fs/homebrew-fstool/contributors). 29 | 30 | 31 | [![Flatstack](https://avatars0.githubusercontent.com/u/15136?v=2&s=200)](http://www.flatstack.com) 32 | -------------------------------------------------------------------------------- /fs-tool.rb: -------------------------------------------------------------------------------- 1 | require "formula" 2 | 3 | class FsTool < Formula 4 | homepage "http://fs.github.io/fs-tool/" 5 | version "1.7.0" 6 | 7 | url "https://github.com/fs/fs-tool/archive/1.7.0.tar.gz" 8 | sha256 "85cce3ef6b88edeb426dc650fc6daf69f5bced193072696009f31a7a16e1382c" 9 | 10 | def install 11 | bin.install Dir['bin/**'] 12 | libexec.install Dir['libexec/**'] 13 | share.install Dir['share/**'] 14 | (prefix/'completions').install Dir['completions/**'] 15 | end 16 | 17 | def caveats; <<-EOS.undent 18 | To enable autocompletion make the following steps: 19 | 20 | Bash users: 21 | 22 | echo 'eval "$(fs init -)"' >> ~/.bash_profile 23 | exec bash 24 | 25 | Zsh users: 26 | 27 | echo 'eval "$(fs init -)"' >> ~/.zshenv 28 | source ~/.zshenv 29 | 30 | More information here: https://github.com/fs/fs-tool/blob/master/README.md 31 | EOS 32 | end 33 | 34 | test do 35 | assert_equal `#{bin}/fs h`.split("\n").first, 'Usage: fs h [subcommand]' 36 | end 37 | end 38 | --------------------------------------------------------------------------------