2020-08-18 20:22:50 -07:00
class Bottom < Formula
desc "A cross-platform graphical process/system monitor with a customizable interface and a multitude of features."
homepage "https://github.com/ClementTsang/bottom"
version "$version"
2020-08-23 23:24:06 -04:00
if OS.mac?
url "https://github.com/ClementTsang/bottom/releases/download/#{version}/bottom_x86_64-apple-darwin.tar.gz"
sha256 "$hash1"
elsif OS.linux?
2020-12-10 20:11:34 -05:00
url "https://github.com/ClementTsang/bottom/releases/download/#{version}/bottom_x86_64-unknown-linux-musl.tar.gz"
2020-08-23 23:24:06 -04:00
sha256 "$hash2"
end
2020-08-18 20:22:50 -07:00
def install
2020-11-20 22:03:55 -05:00
bash_completion.install "completion/btm.bash"
2020-11-22 10:32:42 -05:00
zsh_completion.install "completion/_btm"
2021-03-03 16:12:45 -05:00
fish_completion.install "completion/btm.fish
2020-08-18 20:22:50 -07:00
bin.install "btm"
ohai "You're done! Run with \"btm\""
ohai "For runtime flags, see \"btm --help\""
2020-08-25 19:06:12 -04:00
ohai "If you want to configure bottom, by default bottom looks for a file in $HOME/Library/Application Support/bottom.toml or $HOME/.config/bottom/bottom.toml"
2020-08-18 20:22:50 -07:00
end
2020-12-29 18:32:38 -05:00
def caveats
<<~EOS
Note that bottom may require elevated privileges to correctly display information for all processes.
You can do this with `sudo btm`.
You should be certain that you trust any software you grant root privileges.
EOS
end
2020-08-18 20:22:50 -07:00
end