mirror of
https://github.com/golang/go.git
synced 2025-05-05 15:43:04 +00:00
Added instructions on setting GOPATH and GOBIN on fish shell
parent
c94a32aa06
commit
7b68a14c97
@ -39,6 +39,21 @@ Save and exit your editor. Then, source your `~/.zshrc`.
|
||||
$ source ~/.zshrc
|
||||
```
|
||||
|
||||
## fish
|
||||
|
||||
```bash
|
||||
set -x -U GOPATH $HOME/go
|
||||
```
|
||||
> The `-x` is used to specify that this variable should be exported
|
||||
> and the `-U` makes this a universal variable, available to all sessions and
|
||||
> persistent
|
||||
|
||||
To set the GOBIN path:
|
||||
|
||||
```bash
|
||||
set -x -U GOBIN $GOPATH/bin
|
||||
```
|
||||
|
||||
# Windows
|
||||
|
||||
Your workspace can be located wherever you like,
|
||||
|
Loading…
x
Reference in New Issue
Block a user