mirror of
https://github.com/danielmiessler/fabric
synced 2024-11-08 07:11:06 +00:00
update: add env variable info for Apple Silicon
-Updated the readme with env variables for Apple Silicon based mac as the path for Brew installed apps is different there.
This commit is contained in:
parent
1ef492449d
commit
5da056b87a
@ -115,6 +115,7 @@ fabric --setup
|
||||
|
||||
If everything works you are good to go, but you may need to set some environment variables in your `~/.bashrc` or `~/.zshrc` file. Here is an example of what you can add:
|
||||
|
||||
For Intel based macs
|
||||
```bash
|
||||
# Golang environment variables
|
||||
export GOROOT=/usr/local/go
|
||||
@ -122,6 +123,14 @@ export GOPATH=$HOME/go
|
||||
export PATH=$GOPATH/bin:$GOROOT/bin:$HOME/.local/bin:$PATH:
|
||||
```
|
||||
|
||||
for Apple Silicon based macs
|
||||
```bash
|
||||
# Golang environment variables
|
||||
export GOROOT=/opt/homebrew/bin/go
|
||||
export GOPATH=$HOME/go
|
||||
export PATH=$GOPATH/bin:$GOROOT/bin:$HOME/.local/bin:$PATH:
|
||||
```
|
||||
|
||||
### Migration
|
||||
|
||||
If you have the Legacy (Python) version installed and want to migrate to the Go version, here's how you do it. It's basically two steps: 1) uninstall the Python version, and 2) install the Go version.
|
||||
|
Loading…
Reference in New Issue
Block a user