Skip to content

Commit baeae72

Browse files
authored
Update README.markdown (#425)
Adding environment variable clarification to readme
1 parent 68d2b18 commit baeae72

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

README.markdown

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,16 @@ Run <code><strong>src login <i>SOURCEGRAPH-URL</i></strong></code> to authentica
8080
- `SRC_ENDPOINT`: the URL to your Sourcegraph instance (such as `https://sourcegraph.example.com`)
8181
- `SRC_ACCESS_TOKEN`: your Sourcegraph access token (on your Sourcegraph instance, click your user menu in the top right, then select **Settings > Access tokens** to create one)
8282

83-
For convenience, you can export these environment variables in your shell profile. You can also inline them in a single command with:
83+
For convenience, you can export these environment variables in your shell profile. To configure them as environment variables, add the following to your terminal profile file, typically accessible at `~/.bash_profile` (if using Bash) or `~/.zprofile` (if using Zsh):
84+
85+
```
86+
export SRC_ACCESS_TOKEN=my-token
87+
export SRC_ENDPOINT=https://sourcegraph.example.com
88+
```
89+
90+
Replace `my-token` and `https://sourcegraph.example.com` with the appropriate values for your account and instance.
91+
92+
You can also inline them in a single command with:
8493

8594
```sh
8695
SRC_ENDPOINT=https://sourcegraph.example.com SRC_ACCESS_TOKEN=my-token src search 'foo'

0 commit comments

Comments
 (0)