summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authoraxel simon <github@axelsimon.net>2020-03-10 09:01:17 +0000
committerGitHub <noreply@github.com>2020-03-10 10:01:17 +0100
commitfe642f880721f4a5ed98c7a5cd43a103ebcb0700 (patch)
tree5ea34f4de60d9cdcea7cd2afef6f8cee8669b21b /README.md
parentbf492a843e321c0afe308275da80a8e13434ef08 (diff)
docs(readme): correct/improve a few typos (#151)
* Correct/improve a few typos * Add suggestion to use sudo -E sudo -E inherits current users environment variables
Diffstat (limited to 'README.md')
-rw-r--r--README.md5
1 files changed, 3 insertions, 2 deletions
diff --git a/README.md b/README.md
index 1a5d238..fa64772 100644
--- a/README.md
+++ b/README.md
@@ -54,10 +54,11 @@ cargo install bandwhich
```
This installs `bandwhich` to `~/.cargo/bin/bandwhich` but you need root priviliges to run `bandwhich`. To fix that, there are a few options:
-- Give the executable elevated permissions: ``sudo setcap cap_sys_ptrace,cap_dac_read_search,cap_net_raw,cap_net_admin+ep `which bandwhich``
+- Give the executable elevated permissions: ``sudo setcap cap_sys_ptrace,cap_dac_read_search,cap_net_raw,cap_net_admin+ep $(which bandwhich)``
- Run `sudo ~/.cargo/bin/bandwhich` instead of just `bandwhich`
- Create a symlink: `sudo ln -s ~/.cargo/bin/bandwhich /usr/local/bin/` (or another path on root's PATH)
-- Set root's PATH to match your own `sudo env "PATH=$PATH" bandwhich`
+- Set root's PATH to match your own: `sudo env "PATH=$PATH" bandwhich`
+- Tell sudo to use your user's environment variables: `sudo -E bandwhich`
- Pass the desired target directory to cargo: `sudo cargo install bandwhich --root /usr/local/bin/`
#### Download a prebuilt binary