mirror of
https://github.com/ClementTsang/bottom
synced 2024-11-23 20:53:07 +00:00
31 lines
No EOL
1.3 KiB
Text
31 lines
No EOL
1.3 KiB
Text
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"
|
|
if OS.mac?
|
|
url "https://github.com/ClementTsang/bottom/releases/download/#{version}/bottom_x86_64-apple-darwin.tar.gz"
|
|
sha256 "$hash1"
|
|
elsif OS.linux?
|
|
url "https://github.com/ClementTsang/bottom/releases/download/#{version}/bottom_x86_64-unknown-linux-musl.tar.gz"
|
|
sha256 "$hash2"
|
|
end
|
|
|
|
def install
|
|
bash_completion.install "completion/btm.bash"
|
|
zsh_completion.install "completion/_btm"
|
|
fish_completion.install "completion/btm.fish
|
|
bin.install "btm"
|
|
ohai "You're done! Run with \"btm\""
|
|
ohai "For runtime flags, see \"btm --help\""
|
|
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"
|
|
end
|
|
|
|
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
|
|
end
|
|
|