You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+23-11Lines changed: 23 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,9 +19,21 @@ A computer's [/etc/hosts] file is a powerful utility for developers and system a
19
19
20
20
MacOS [homebrew](https://brew.sh) users can `brew install txn2/tap/txeh`, otherwise see [releases](https://github.com/txn2/txeh/releases) for packages and binaries for a number of distros and architectures including Windows, Linux and Arm based systems.
21
21
22
-
Complie and run from source (dependencies are vendored):
22
+
#### Install with go install
23
+
24
+
When installing with Go please use the latest stable Go release. At least go1.16 or greater is required.
25
+
26
+
To install use: `go install github.com/txn2/txeh/txeh@master`
27
+
28
+
If you are building from a local source clone, use `go install ./txeh` from the top-level directory of the clone.
29
+
30
+
go install will typically put the txeh binary inside the bin directory under go env GOPATH, see Go’s [Compile and install packages and dependencies](https://golang.org/cmd/go/#hdr-Compile_and_install_packages_and_dependencies) for more on this. You may need to add that directory to your $PATH if you encounter the error `txeh: command not found` after installation, you can find a guide for adding a directory to your PATH at https://gist.github.com/nex3/c395b2f8fd4b02068be37c961301caa7#file-path-md.
31
+
32
+
#### Compile and run from source
33
+
34
+
dependencies are vendored:
23
35
```
24
-
go run ./util/txeh.go
36
+
go run ./txeh/txeh.go
25
37
```
26
38
27
39
### Use
@@ -69,7 +81,7 @@ sudo txeh add 127.0.0.1 test test.two
69
81
# remove the hostname "test"
70
82
sudo txeh remove host test
71
83
72
-
# remove multiple hostnames
84
+
# remove multiple hostnames
73
85
sudo txeh remove host test test2 test.two
74
86
75
87
# remove an IP address and all the hosts that point to it
0 commit comments