diff options
author | Teddy Wing | 2018-03-03 18:44:52 +0100 |
---|---|---|
committer | Teddy Wing | 2018-03-03 19:06:49 +0100 |
commit | bc05c7d2d9c221277e53ed7a2d8c989eecf70e2c (patch) | |
tree | 62a6ff404c91b8cd887485eaa0eb8f4710d6dda9 /HomebrewFormula | |
parent | b3082c7ba0c7689b515926781c4cfd10e3e65ea1 (diff) | |
download | Passextract-bc05c7d2d9c221277e53ed7a2d8c989eecf70e2c.tar.bz2 |
Add Homebrew formula
To make it easier to install the program including shell completion and
the man page (at least on OS X).
Diffstat (limited to 'HomebrewFormula')
-rw-r--r-- | HomebrewFormula/passextract.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/HomebrewFormula/passextract.rb b/HomebrewFormula/passextract.rb new file mode 100644 index 0000000..609f832 --- /dev/null +++ b/HomebrewFormula/passextract.rb @@ -0,0 +1,19 @@ +class Passextract < Formula + desc "An interface to easily copy login information from Pass" + homepage "https://github.com/teddywing/Passextract" + url "https://github.com/teddywing/Passextract/releases/download/v0.4.0/passextract-0.4.0_osx_amd64.tar.bz2" + sha256 "622439d19d2cedde4c6666d29cc9fad5487083da3e26660b66910e2f469eb54e" + + def install + bin.install "passextract" + bash_completion.install "passextract.bash-completion" => "passextract" + man1.install "passextract.1" + end + + def caveats; <<~EOS + To enable tab completion, add the following to your bash profile: + + source #{etc}/bash_completion.d/passextract + EOS + end +end |