How to add a directory to your PATH

How to add a directory to your PATH

Julia Evans

@b0rk

> Go: go env | grep GOPATH (then append /bin/)

You can also use `go env GOPATH` to directly output the value of that environment variable — which is handy because the output of `go env | grep GOPATH` is in this form:

```
GOPATH='/home/username/go'
```

Instead, the `.bashrc` could just say:

```
export PATH="${PATH}:$(go env GOPATH)/bin"
```

@b0rk OK, I was expecting *some* formatting to work... I guess I was wrong 😅