From 8fefea12712deef1942ea857d64eaeba12e624eb Mon Sep 17 00:00:00 2001 From: BSKY Date: Mon, 6 Jan 2020 04:12:40 +0900 Subject: [PATCH 1/2] Update README.md --- README.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 771d586c3..4d3024049 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ This is a CLI utility for displaying current network utilization by process, connection and remote IP/hostname ### How does it work? -`bandwhich` sniffs a given network interface and records IP packet size, cross referencing it with the `/proc` filesystem on linux or `lsof` on MacOS. It is responsive to the terminal window size, displaying less info if there is no room for it. It will also attempt to resolve ips to their host name in the background using reverse DNS on a best effort basis. +`bandwhich` sniffs a given network interface and records IP packet size, cross referencing it with the `/proc` filesystem on linux or `lsof` on macOS. It is responsive to the terminal window size, displaying less info if there is no room for it. It will also attempt to resolve ips to their host name in the background using reverse DNS on a best effort basis. ### Installation @@ -23,7 +23,13 @@ yay -S bandwhich nix-env -iA nixpkgs.bandwhich ``` -#### MacOS and other Linux flavours +#### macOS + +``` +brew install bandwhich +``` + +#### Other Linux flavours `bandwhich` can be installed using the Rust package manager, cargo. If it's not in your distro repositories or the available version is too old, you can install it via [rustup](https://rustup.rs/). You can find additional installation instructions [here](https://doc.rust-lang.org/book/ch01-01-installation.html). From ba391ae787800d08a922e40a30e7d1165a04349c Mon Sep 17 00:00:00 2001 From: Aram Drevekenin Date: Sun, 5 Jan 2020 20:30:19 +0100 Subject: [PATCH 2/2] docs(comment): warning not to break homebrew test --- src/os/shared.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/os/shared.rs b/src/os/shared.rs index 1f71c61da..35391f563 100644 --- a/src/os/shared.rs +++ b/src/os/shared.rs @@ -90,6 +90,7 @@ pub fn get_input( Some(interface) => vec![interface], None => { failure::bail!("Cannot find interface {}", name); + // the homebrew formula relies on this wording, please be careful when changing } } } else {