t-completion: import from homebrew/completions.
This commit is contained in:
parent
021cd81791
commit
ba30d05dd2
1 changed files with 19 additions and 0 deletions
19
Formula/t-completion.rb
Normal file
19
Formula/t-completion.rb
Normal file
|
@ -0,0 +1,19 @@
|
|||
class TCompletion < Formula
|
||||
desc "Completion for CLI power tool for Twitter"
|
||||
homepage "http://sferik.github.com/t"
|
||||
url "https://github.com/sferik/t/archive/v3.1.0.tar.gz"
|
||||
sha256 "900ef6e3d6180b70bf2434503774ea5e1bf985b9110d4f051c44a191b08f6062"
|
||||
head "https://github.com/sferik/t.git"
|
||||
|
||||
bottle :unneeded
|
||||
|
||||
def install
|
||||
bash_completion.install "etc/t-completion.sh" => "t"
|
||||
zsh_completion.install "etc/t-completion.zsh" => "_t"
|
||||
end
|
||||
|
||||
test do
|
||||
assert_match "-F _t",
|
||||
shell_output("source #{bash_completion}/t && complete -p t")
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue